whitebit-python-sdk 1.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (451) hide show
  1. whitebit/__init__.py +793 -0
  2. whitebit/client.py +580 -0
  3. whitebit/codes/__init__.py +7 -0
  4. whitebit/codes/client.py +510 -0
  5. whitebit/codes/raw_client.py +809 -0
  6. whitebit/codes/types/__init__.py +10 -0
  7. whitebit/codes/types/apply_code_response.py +22 -0
  8. whitebit/codes/types/create_code_response.py +32 -0
  9. whitebit/codes/types/get_codes_history_response.py +27 -0
  10. whitebit/codes/types/get_my_codes_response.py +27 -0
  11. whitebit/collateral_trading/__init__.py +183 -0
  12. whitebit/collateral_trading/client.py +2452 -0
  13. whitebit/collateral_trading/raw_client.py +4337 -0
  14. whitebit/collateral_trading/types/__init__.py +213 -0
  15. whitebit/collateral_trading/types/cancel_oco_order_response.py +34 -0
  16. whitebit/collateral_trading/types/cancel_oco_order_response_stop_loss.py +146 -0
  17. whitebit/collateral_trading/types/cancel_oco_order_response_stop_loss_activation_condition.py +5 -0
  18. whitebit/collateral_trading/types/cancel_oco_order_response_stop_loss_side.py +5 -0
  19. whitebit/collateral_trading/types/cancel_oco_order_response_take_profit.py +114 -0
  20. whitebit/collateral_trading/types/cancel_oco_order_response_take_profit_side.py +5 -0
  21. whitebit/collateral_trading/types/change_collateral_account_leverage_response.py +22 -0
  22. whitebit/collateral_trading/types/close_position_request_position_side.py +5 -0
  23. whitebit/collateral_trading/types/collateral_account_balance_summary_response_item.py +48 -0
  24. whitebit/collateral_trading/types/collateral_account_summary_response.py +60 -0
  25. whitebit/collateral_trading/types/create_collateral_bulk_order_request_orders_item.py +98 -0
  26. whitebit/collateral_trading/types/create_collateral_bulk_order_request_orders_item_position_side.py +7 -0
  27. whitebit/collateral_trading/types/create_collateral_bulk_order_request_orders_item_side.py +5 -0
  28. whitebit/collateral_trading/types/create_collateral_bulk_order_response_item.py +29 -0
  29. whitebit/collateral_trading/types/create_collateral_bulk_order_response_item_error.py +36 -0
  30. whitebit/collateral_trading/types/create_collateral_bulk_order_response_item_result.py +132 -0
  31. whitebit/collateral_trading/types/create_collateral_bulk_order_response_item_result_position_side.py +7 -0
  32. whitebit/collateral_trading/types/create_collateral_bulk_order_response_item_result_side.py +5 -0
  33. whitebit/collateral_trading/types/create_collateral_bulk_order_response_item_result_status.py +7 -0
  34. whitebit/collateral_trading/types/create_collateral_limit_order_request_position_side.py +5 -0
  35. whitebit/collateral_trading/types/create_collateral_limit_order_request_side.py +5 -0
  36. whitebit/collateral_trading/types/create_collateral_limit_order_response.py +132 -0
  37. whitebit/collateral_trading/types/create_collateral_limit_order_response_oto.py +44 -0
  38. whitebit/collateral_trading/types/create_collateral_limit_order_response_position_side.py +5 -0
  39. whitebit/collateral_trading/types/create_collateral_limit_order_response_side.py +5 -0
  40. whitebit/collateral_trading/types/create_collateral_limit_order_response_status.py +7 -0
  41. whitebit/collateral_trading/types/create_collateral_market_order_request_position_side.py +5 -0
  42. whitebit/collateral_trading/types/create_collateral_market_order_request_side.py +5 -0
  43. whitebit/collateral_trading/types/create_collateral_market_order_response.py +110 -0
  44. whitebit/collateral_trading/types/create_collateral_market_order_response_oto.py +44 -0
  45. whitebit/collateral_trading/types/create_collateral_market_order_response_position_side.py +5 -0
  46. whitebit/collateral_trading/types/create_collateral_market_order_response_side.py +5 -0
  47. whitebit/collateral_trading/types/create_collateral_market_order_response_status.py +7 -0
  48. whitebit/collateral_trading/types/create_collateral_oco_order_request_side.py +5 -0
  49. whitebit/collateral_trading/types/create_collateral_oco_order_response.py +34 -0
  50. whitebit/collateral_trading/types/create_collateral_oco_order_response_stop_loss.py +159 -0
  51. whitebit/collateral_trading/types/create_collateral_oco_order_response_stop_loss_activation_condition.py +5 -0
  52. whitebit/collateral_trading/types/create_collateral_oco_order_response_stop_loss_position_side.py +5 -0
  53. whitebit/collateral_trading/types/create_collateral_oco_order_response_stop_loss_side.py +5 -0
  54. whitebit/collateral_trading/types/create_collateral_oco_order_response_stop_loss_status.py +7 -0
  55. whitebit/collateral_trading/types/create_collateral_oco_order_response_take_profit.py +139 -0
  56. whitebit/collateral_trading/types/create_collateral_oco_order_response_take_profit_position_side.py +7 -0
  57. whitebit/collateral_trading/types/create_collateral_oco_order_response_take_profit_side.py +5 -0
  58. whitebit/collateral_trading/types/create_collateral_oco_order_response_take_profit_status.py +7 -0
  59. whitebit/collateral_trading/types/create_collateral_stop_limit_order_request_position_side.py +5 -0
  60. whitebit/collateral_trading/types/create_collateral_stop_limit_order_request_side.py +5 -0
  61. whitebit/collateral_trading/types/create_collateral_stop_limit_order_response.py +122 -0
  62. whitebit/collateral_trading/types/create_collateral_stop_limit_order_response_oto.py +44 -0
  63. whitebit/collateral_trading/types/create_collateral_stop_limit_order_response_position_side.py +5 -0
  64. whitebit/collateral_trading/types/create_collateral_stop_limit_order_response_side.py +5 -0
  65. whitebit/collateral_trading/types/create_collateral_stop_limit_order_response_status.py +7 -0
  66. whitebit/collateral_trading/types/create_collateral_trigger_market_order_request_position_side.py +7 -0
  67. whitebit/collateral_trading/types/create_collateral_trigger_market_order_request_side.py +5 -0
  68. whitebit/collateral_trading/types/create_collateral_trigger_market_order_response.py +117 -0
  69. whitebit/collateral_trading/types/create_collateral_trigger_market_order_response_oto.py +44 -0
  70. whitebit/collateral_trading/types/create_collateral_trigger_market_order_response_position_side.py +7 -0
  71. whitebit/collateral_trading/types/create_collateral_trigger_market_order_response_side.py +5 -0
  72. whitebit/collateral_trading/types/create_collateral_trigger_market_order_response_status.py +7 -0
  73. whitebit/collateral_trading/types/get_collateral_hedge_mode_response.py +26 -0
  74. whitebit/collateral_trading/types/get_conditional_orders_response.py +38 -0
  75. whitebit/collateral_trading/types/get_conditional_orders_response_records_item.py +60 -0
  76. whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oco.py +31 -0
  77. whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oco_stop_loss.py +28 -0
  78. whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oco_stop_loss_position_side.py +7 -0
  79. whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oco_take_profit.py +28 -0
  80. whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oco_take_profit_position_side.py +7 -0
  81. whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oto.py +34 -0
  82. whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oto_conditional_order.py +30 -0
  83. whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oto_conditional_order_position_side.py +7 -0
  84. whitebit/collateral_trading/types/get_funding_history_response.py +33 -0
  85. whitebit/collateral_trading/types/get_funding_history_response_records_item.py +66 -0
  86. whitebit/collateral_trading/types/get_oco_orders_response_item.py +34 -0
  87. whitebit/collateral_trading/types/get_oco_orders_response_item_stop_loss.py +49 -0
  88. whitebit/collateral_trading/types/get_oco_orders_response_item_stop_loss_activation_condition.py +5 -0
  89. whitebit/collateral_trading/types/get_oco_orders_response_item_stop_loss_side.py +5 -0
  90. whitebit/collateral_trading/types/get_oco_orders_response_item_take_profit.py +43 -0
  91. whitebit/collateral_trading/types/get_oco_orders_response_item_take_profit_side.py +5 -0
  92. whitebit/collateral_trading/types/get_open_positions_response_item.py +136 -0
  93. whitebit/collateral_trading/types/get_open_positions_response_item_liquidation_state.py +5 -0
  94. whitebit/collateral_trading/types/get_open_positions_response_item_position_side.py +5 -0
  95. whitebit/collateral_trading/types/get_open_positions_response_item_tpsl.py +51 -0
  96. whitebit/collateral_trading/types/get_positions_history_response_item.py +95 -0
  97. whitebit/collateral_trading/types/get_positions_history_response_item_liquidation_state.py +5 -0
  98. whitebit/collateral_trading/types/get_positions_history_response_item_order_detail.py +61 -0
  99. whitebit/collateral_trading/types/get_positions_history_response_item_position_side.py +5 -0
  100. whitebit/core/__init__.py +52 -0
  101. whitebit/core/api_error.py +23 -0
  102. whitebit/core/client_wrapper.py +57 -0
  103. whitebit/core/datetime_utils.py +28 -0
  104. whitebit/core/file.py +67 -0
  105. whitebit/core/http_client.py +497 -0
  106. whitebit/core/http_response.py +55 -0
  107. whitebit/core/jsonable_encoder.py +100 -0
  108. whitebit/core/pydantic_utilities.py +255 -0
  109. whitebit/core/query_encoder.py +58 -0
  110. whitebit/core/remove_none_from_dict.py +11 -0
  111. whitebit/core/request_options.py +35 -0
  112. whitebit/core/serialization.py +276 -0
  113. whitebit/credit_line/__init__.py +4 -0
  114. whitebit/credit_line/client.py +128 -0
  115. whitebit/credit_line/raw_client.py +191 -0
  116. whitebit/crypto_lending_fixed/__init__.py +7 -0
  117. whitebit/crypto_lending_fixed/client.py +651 -0
  118. whitebit/crypto_lending_fixed/raw_client.py +931 -0
  119. whitebit/crypto_lending_fixed/types/__init__.py +9 -0
  120. whitebit/crypto_lending_fixed/types/create_fixed_investment_response.py +22 -0
  121. whitebit/crypto_lending_fixed/types/get_fixed_investments_history_response.py +22 -0
  122. whitebit/crypto_lending_fixed/types/get_interest_payment_history_response.py +22 -0
  123. whitebit/crypto_lending_flex/__init__.py +29 -0
  124. whitebit/crypto_lending_flex/client.py +1140 -0
  125. whitebit/crypto_lending_flex/raw_client.py +1651 -0
  126. whitebit/crypto_lending_flex/types/__init__.py +27 -0
  127. whitebit/crypto_lending_flex/types/close_flex_investment_response.py +20 -0
  128. whitebit/crypto_lending_flex/types/close_flex_investment_response_data.py +26 -0
  129. whitebit/crypto_lending_flex/types/create_flex_investment_response.py +20 -0
  130. whitebit/crypto_lending_flex/types/create_flex_investment_response_data.py +26 -0
  131. whitebit/crypto_lending_flex/types/get_flex_investment_history_response.py +22 -0
  132. whitebit/crypto_lending_flex/types/get_flex_payment_history_response.py +22 -0
  133. whitebit/crypto_lending_flex/types/get_user_flex_investments_response.py +22 -0
  134. whitebit/crypto_lending_flex/types/update_flex_auto_reinvestment_response.py +19 -0
  135. whitebit/crypto_lending_flex/types/withdraw_from_flex_investment_response.py +20 -0
  136. whitebit/crypto_lending_flex/types/withdraw_from_flex_investment_response_data.py +26 -0
  137. whitebit/deposit/__init__.py +35 -0
  138. whitebit/deposit/client.py +997 -0
  139. whitebit/deposit/raw_client.py +1342 -0
  140. whitebit/deposit/types/__init__.py +33 -0
  141. whitebit/deposit/types/create_new_address_request_type.py +5 -0
  142. whitebit/deposit/types/create_new_address_response.py +22 -0
  143. whitebit/deposit/types/create_new_address_response_account.py +27 -0
  144. whitebit/deposit/types/create_new_address_response_required.py +48 -0
  145. whitebit/deposit/types/create_new_address_response_required_flex_fee.py +42 -0
  146. whitebit/deposit/types/get_deposit_address_response.py +22 -0
  147. whitebit/deposit/types/get_deposit_address_response_account.py +27 -0
  148. whitebit/deposit/types/get_deposit_address_response_required.py +48 -0
  149. whitebit/deposit/types/get_deposit_address_response_required_flex_fee.py +42 -0
  150. whitebit/deposit/types/get_fiat_deposit_url_request_customer.py +61 -0
  151. whitebit/deposit/types/get_fiat_deposit_url_request_customer_address.py +56 -0
  152. whitebit/deposit/types/get_fiat_deposit_url_response.py +22 -0
  153. whitebit/deposit/types/refund_deposit_response.py +22 -0
  154. whitebit/environment.py +17 -0
  155. whitebit/errors/__init__.py +19 -0
  156. whitebit/errors/bad_request_error.py +10 -0
  157. whitebit/errors/internal_server_error.py +10 -0
  158. whitebit/errors/not_found_error.py +11 -0
  159. whitebit/errors/service_unavailable_error.py +10 -0
  160. whitebit/errors/unauthorized_error.py +10 -0
  161. whitebit/errors/unprocessable_entity_error.py +10 -0
  162. whitebit/fees/__init__.py +4 -0
  163. whitebit/fees/client.py +126 -0
  164. whitebit/fees/raw_client.py +144 -0
  165. whitebit/jwt/__init__.py +7 -0
  166. whitebit/jwt/client.py +224 -0
  167. whitebit/jwt/raw_client.py +389 -0
  168. whitebit/jwt/types/__init__.py +9 -0
  169. whitebit/jwt/types/get_web_socket_token_response.py +22 -0
  170. whitebit/jwt/types/issue_jwt_token_response.py +20 -0
  171. whitebit/jwt/types/issue_jwt_token_response_data.py +27 -0
  172. whitebit/main_account/__init__.py +7 -0
  173. whitebit/main_account/client.py +380 -0
  174. whitebit/main_account/raw_client.py +493 -0
  175. whitebit/main_account/types/__init__.py +8 -0
  176. whitebit/main_account/types/get_deposit_withdraw_history_response.py +26 -0
  177. whitebit/main_account/types/get_main_balance_response_value.py +22 -0
  178. whitebit/market_fee/__init__.py +7 -0
  179. whitebit/market_fee/client.py +193 -0
  180. whitebit/market_fee/raw_client.py +267 -0
  181. whitebit/market_fee/types/__init__.py +8 -0
  182. whitebit/market_fee/types/get_all_market_fees_response.py +43 -0
  183. whitebit/market_fee/types/get_market_fee_response.py +38 -0
  184. whitebit/mining_pool/__init__.py +67 -0
  185. whitebit/mining_pool/client.py +1083 -0
  186. whitebit/mining_pool/raw_client.py +1695 -0
  187. whitebit/mining_pool/types/__init__.py +69 -0
  188. whitebit/mining_pool/types/create_mining_account_response.py +20 -0
  189. whitebit/mining_pool/types/create_mining_account_response_data.py +31 -0
  190. whitebit/mining_pool/types/create_mining_watcher_link_request_live_until.py +5 -0
  191. whitebit/mining_pool/types/create_mining_watcher_link_request_permissions_item.py +7 -0
  192. whitebit/mining_pool/types/create_mining_watcher_link_response.py +20 -0
  193. whitebit/mining_pool/types/create_mining_watcher_link_response_data.py +24 -0
  194. whitebit/mining_pool/types/get_mining_accounts_response.py +20 -0
  195. whitebit/mining_pool/types/get_mining_accounts_response_data_item.py +31 -0
  196. whitebit/mining_pool/types/get_mining_hashrate_request_interval.py +5 -0
  197. whitebit/mining_pool/types/get_mining_hashrate_response.py +20 -0
  198. whitebit/mining_pool/types/get_mining_hashrate_response_data.py +21 -0
  199. whitebit/mining_pool/types/get_mining_hashrate_response_data_hashrate_item.py +20 -0
  200. whitebit/mining_pool/types/get_mining_miner_info_response.py +20 -0
  201. whitebit/mining_pool/types/get_mining_miner_info_response_data.py +25 -0
  202. whitebit/mining_pool/types/get_mining_miner_info_response_data_stratum_item.py +22 -0
  203. whitebit/mining_pool/types/get_mining_payout_destination_response.py +36 -0
  204. whitebit/mining_pool/types/get_mining_payout_destination_response_payout_destination.py +7 -0
  205. whitebit/mining_pool/types/get_mining_rewards_response.py +22 -0
  206. whitebit/mining_pool/types/get_mining_worker_hashrate_request_interval.py +5 -0
  207. whitebit/mining_pool/types/get_mining_worker_hashrate_response.py +20 -0
  208. whitebit/mining_pool/types/get_mining_worker_hashrate_response_data.py +20 -0
  209. whitebit/mining_pool/types/get_mining_worker_hashrate_response_data_hashrates_item.py +23 -0
  210. whitebit/mining_pool/types/get_mining_worker_names_response.py +22 -0
  211. whitebit/mining_pool/types/get_mining_worker_names_response_data.py +19 -0
  212. whitebit/mining_pool/types/list_mining_watcher_links_response.py +20 -0
  213. whitebit/mining_pool/types/list_mining_watcher_links_response_data_item.py +27 -0
  214. whitebit/mining_pool/types/set_mining_payout_destination_request_destination.py +7 -0
  215. whitebit/mining_pool/types/set_mining_payout_destination_response.py +27 -0
  216. whitebit/mining_pool/types/set_mining_payout_destination_response_payout_destination.py +7 -0
  217. whitebit/public_api_v4/__init__.py +37 -0
  218. whitebit/public_api_v4/client.py +1096 -0
  219. whitebit/public_api_v4/raw_client.py +1398 -0
  220. whitebit/public_api_v4/types/__init__.py +37 -0
  221. whitebit/public_api_v4/types/get_api_v4public_funding_history_market_response_item.py +52 -0
  222. whitebit/public_api_v4/types/get_api_v4public_futures_response.py +22 -0
  223. whitebit/public_api_v4/types/get_api_v4public_markets_response_item.py +110 -0
  224. whitebit/public_api_v4/types/get_api_v4public_markets_response_item_type.py +5 -0
  225. whitebit/public_api_v4/types/get_api_v4public_mining_pool_response.py +20 -0
  226. whitebit/public_api_v4/types/get_api_v4public_mining_pool_response_data.py +39 -0
  227. whitebit/public_api_v4/types/get_api_v4public_mining_pool_response_data_blocks_item.py +22 -0
  228. whitebit/public_api_v4/types/get_api_v4public_mining_pool_response_data_last7days_hash_rate_item.py +20 -0
  229. whitebit/public_api_v4/types/get_api_v4public_platform_status_response.py +22 -0
  230. whitebit/public_api_v4/types/get_api_v4public_ticker_response_value.py +56 -0
  231. whitebit/public_api_v4/types/get_api_v4public_time_response.py +22 -0
  232. whitebit/public_api_v4/types/get_api_v4public_trades_market_request_type.py +5 -0
  233. whitebit/public_api_v4/types/get_api_v4public_trades_market_response_item.py +57 -0
  234. whitebit/public_api_v4/types/get_api_v4public_trades_market_response_item_type.py +5 -0
  235. whitebit/raw_client.py +637 -0
  236. whitebit/spot_trading/__init__.py +47 -0
  237. whitebit/spot_trading/client.py +4143 -0
  238. whitebit/spot_trading/raw_client.py +5628 -0
  239. whitebit/spot_trading/types/__init__.py +45 -0
  240. whitebit/spot_trading/types/cancel_all_orders_request_type_item.py +5 -0
  241. whitebit/spot_trading/types/get_executed_order_history_response_value_item.py +62 -0
  242. whitebit/spot_trading/types/get_executed_order_history_response_value_item_side.py +5 -0
  243. whitebit/spot_trading/types/get_kill_switch_status_response_item.py +44 -0
  244. whitebit/spot_trading/types/get_kill_switch_status_response_item_types_item.py +5 -0
  245. whitebit/spot_trading/types/get_order_deals_response.py +33 -0
  246. whitebit/spot_trading/types/get_order_deals_response_records_item.py +80 -0
  247. whitebit/spot_trading/types/get_order_history_response_value_item.py +131 -0
  248. whitebit/spot_trading/types/get_order_history_response_value_item_side.py +5 -0
  249. whitebit/spot_trading/types/limit_order_request_side.py +5 -0
  250. whitebit/spot_trading/types/limit_order_request_stp.py +5 -0
  251. whitebit/spot_trading/types/set_kill_switch_request_types_item.py +5 -0
  252. whitebit/spot_trading/types/set_kill_switch_response.py +44 -0
  253. whitebit/spot_trading/types/set_kill_switch_response_types_item.py +5 -0
  254. whitebit/spot_trading/types/stop_limit_order_request_side.py +5 -0
  255. whitebit/spot_trading/types/stop_limit_order_request_stp.py +5 -0
  256. whitebit/spot_trading/types/stop_market_order_request_side.py +5 -0
  257. whitebit/spot_trading/types/stop_market_order_request_stp.py +5 -0
  258. whitebit/spot_trading/types/trade_account_balance_response_value.py +27 -0
  259. whitebit/sub_account/__init__.py +25 -0
  260. whitebit/sub_account/client.py +892 -0
  261. whitebit/sub_account/raw_client.py +1399 -0
  262. whitebit/sub_account/types/__init__.py +23 -0
  263. whitebit/sub_account/types/create_sub_account_request_permissions.py +29 -0
  264. whitebit/sub_account/types/edit_sub_account_request_permissions.py +29 -0
  265. whitebit/sub_account/types/get_sub_account_balances_response_value_item.py +21 -0
  266. whitebit/sub_account/types/get_sub_account_transfer_history_request_direction.py +5 -0
  267. whitebit/sub_account/types/get_sub_account_transfer_history_response.py +22 -0
  268. whitebit/sub_account/types/list_sub_accounts_response.py +22 -0
  269. whitebit/sub_account/types/sub_account_transfer_request_direction.py +5 -0
  270. whitebit/sub_account/types/sub_account_transfer_response.py +26 -0
  271. whitebit/sub_account_api_keys/__init__.py +19 -0
  272. whitebit/sub_account_api_keys/client.py +754 -0
  273. whitebit/sub_account_api_keys/raw_client.py +1183 -0
  274. whitebit/sub_account_api_keys/types/__init__.py +17 -0
  275. whitebit/sub_account_api_keys/types/create_sub_account_api_key_ip_address_response.py +19 -0
  276. whitebit/sub_account_api_keys/types/delete_sub_account_api_key_ip_address_response.py +19 -0
  277. whitebit/sub_account_api_keys/types/edit_sub_account_api_key_request_urls_item.py +20 -0
  278. whitebit/sub_account_api_keys/types/list_sub_account_api_key_ip_addresses_response.py +19 -0
  279. whitebit/sub_account_api_keys/types/list_sub_account_api_keys_response.py +22 -0
  280. whitebit/transfer/__init__.py +15 -0
  281. whitebit/transfer/client.py +220 -0
  282. whitebit/transfer/raw_client.py +276 -0
  283. whitebit/transfer/types/__init__.py +13 -0
  284. whitebit/transfer/types/transfer_between_balances_request_from.py +5 -0
  285. whitebit/transfer/types/transfer_between_balances_request_method.py +7 -0
  286. whitebit/transfer/types/transfer_between_balances_request_to.py +5 -0
  287. whitebit/types/__init__.py +311 -0
  288. whitebit/types/asset.py +106 -0
  289. whitebit/types/asset_limits.py +33 -0
  290. whitebit/types/asset_limits_deposit_value.py +20 -0
  291. whitebit/types/asset_limits_withdraw_value.py +20 -0
  292. whitebit/types/asset_memo.py +24 -0
  293. whitebit/types/asset_networks.py +36 -0
  294. whitebit/types/asset_providers.py +24 -0
  295. whitebit/types/authorize_request.py +32 -0
  296. whitebit/types/authorize_response.py +29 -0
  297. whitebit/types/authorize_response_result.py +22 -0
  298. whitebit/types/bad_request_error_body.py +20 -0
  299. whitebit/types/balance_margin_request.py +32 -0
  300. whitebit/types/balance_margin_response.py +33 -0
  301. whitebit/types/balance_margin_response_result_value.py +37 -0
  302. whitebit/types/balance_margin_subscribe.py +32 -0
  303. whitebit/types/balance_margin_update.py +33 -0
  304. whitebit/types/balance_margin_update_params_item.py +48 -0
  305. whitebit/types/balance_spot_request.py +32 -0
  306. whitebit/types/balance_spot_response.py +33 -0
  307. whitebit/types/balance_spot_response_result_value.py +27 -0
  308. whitebit/types/balance_spot_subscribe.py +32 -0
  309. whitebit/types/balance_spot_update.py +33 -0
  310. whitebit/types/balance_spot_update_params_item_value.py +27 -0
  311. whitebit/types/base_request.py +22 -0
  312. whitebit/types/base_response.py +24 -0
  313. whitebit/types/book_ticker_subscribe.py +29 -0
  314. whitebit/types/book_ticker_update.py +26 -0
  315. whitebit/types/book_ticker_update_data.py +5 -0
  316. whitebit/types/borrows_events_subscribe.py +32 -0
  317. whitebit/types/borrows_events_update.py +34 -0
  318. whitebit/types/borrows_subscribe.py +32 -0
  319. whitebit/types/borrows_update.py +30 -0
  320. whitebit/types/borrows_update_params.py +25 -0
  321. whitebit/types/borrows_update_params_records_item.py +47 -0
  322. whitebit/types/bulk_limit_order_response.py +7 -0
  323. whitebit/types/bulk_limit_order_response_item.py +22 -0
  324. whitebit/types/bulk_order_item.py +42 -0
  325. whitebit/types/bulk_order_item_side.py +5 -0
  326. whitebit/types/candle.py +5 -0
  327. whitebit/types/candles_request.py +36 -0
  328. whitebit/types/candles_response.py +26 -0
  329. whitebit/types/candles_subscribe.py +34 -0
  330. whitebit/types/candles_update.py +26 -0
  331. whitebit/types/code_history.py +47 -0
  332. whitebit/types/code_info.py +47 -0
  333. whitebit/types/convert_confirm_response.py +33 -0
  334. whitebit/types/convert_estimate_request_direction.py +5 -0
  335. whitebit/types/convert_estimate_response.py +56 -0
  336. whitebit/types/convert_history_response.py +34 -0
  337. whitebit/types/convert_history_response_records_item.py +45 -0
  338. whitebit/types/convert_history_response_records_item_path_item.py +23 -0
  339. whitebit/types/credit_line.py +28 -0
  340. whitebit/types/deals_request.py +35 -0
  341. whitebit/types/deals_response.py +29 -0
  342. whitebit/types/deals_response_result.py +30 -0
  343. whitebit/types/deals_response_result_records_item.py +82 -0
  344. whitebit/types/deals_subscribe.py +32 -0
  345. whitebit/types/deals_update.py +43 -0
  346. whitebit/types/depth_level.py +5 -0
  347. whitebit/types/depth_request.py +35 -0
  348. whitebit/types/depth_response.py +22 -0
  349. whitebit/types/depth_subscribe.py +32 -0
  350. whitebit/types/depth_update.py +31 -0
  351. whitebit/types/depth_update_data.py +40 -0
  352. whitebit/types/error.py +21 -0
  353. whitebit/types/error_inner.py +21 -0
  354. whitebit/types/error_response.py +32 -0
  355. whitebit/types/error_v4.py +25 -0
  356. whitebit/types/executed_order_object.py +133 -0
  357. whitebit/types/executed_order_object_position_side.py +5 -0
  358. whitebit/types/executed_order_object_stp.py +5 -0
  359. whitebit/types/fee_details.py +23 -0
  360. whitebit/types/fee_details_flex.py +21 -0
  361. whitebit/types/fee_info.py +49 -0
  362. whitebit/types/fee_info_deposit.py +63 -0
  363. whitebit/types/fee_info_withdraw.py +63 -0
  364. whitebit/types/fixed_plan.py +79 -0
  365. whitebit/types/flex_investment.py +67 -0
  366. whitebit/types/flex_investment_history.py +64 -0
  367. whitebit/types/flex_plan.py +50 -0
  368. whitebit/types/futures_market.py +117 -0
  369. whitebit/types/interest_payment.py +48 -0
  370. whitebit/types/investment.py +64 -0
  371. whitebit/types/lastprice_request.py +29 -0
  372. whitebit/types/lastprice_response.py +25 -0
  373. whitebit/types/lastprice_subscribe.py +29 -0
  374. whitebit/types/lastprice_update.py +30 -0
  375. whitebit/types/margin_positions_events_subscribe.py +34 -0
  376. whitebit/types/margin_positions_events_update.py +34 -0
  377. whitebit/types/market_order_request.py +51 -0
  378. whitebit/types/market_order_request_side.py +5 -0
  379. whitebit/types/market_order_request_stp.py +5 -0
  380. whitebit/types/market_request.py +34 -0
  381. whitebit/types/market_response.py +22 -0
  382. whitebit/types/market_statistics.py +57 -0
  383. whitebit/types/market_subscribe.py +25 -0
  384. whitebit/types/market_today_request.py +29 -0
  385. whitebit/types/market_today_response.py +22 -0
  386. whitebit/types/market_today_statistics.py +47 -0
  387. whitebit/types/market_today_subscribe.py +25 -0
  388. whitebit/types/market_today_update.py +30 -0
  389. whitebit/types/market_update.py +30 -0
  390. whitebit/types/mining_reward.py +62 -0
  391. whitebit/types/not_found_error_body.py +20 -0
  392. whitebit/types/order_book.py +33 -0
  393. whitebit/types/order_object.py +118 -0
  394. whitebit/types/order_object_position_side.py +5 -0
  395. whitebit/types/order_object_stp.py +5 -0
  396. whitebit/types/order_response.py +123 -0
  397. whitebit/types/orderbook_response.py +37 -0
  398. whitebit/types/orders_executed_request.py +35 -0
  399. whitebit/types/orders_executed_response.py +29 -0
  400. whitebit/types/orders_executed_response_result.py +30 -0
  401. whitebit/types/orders_executed_subscribe.py +34 -0
  402. whitebit/types/orders_executed_update.py +33 -0
  403. whitebit/types/orders_pending_request.py +32 -0
  404. whitebit/types/orders_pending_response.py +29 -0
  405. whitebit/types/orders_pending_response_result.py +35 -0
  406. whitebit/types/orders_pending_subscribe.py +32 -0
  407. whitebit/types/orders_pending_update.py +32 -0
  408. whitebit/types/ping_request.py +25 -0
  409. whitebit/types/ping_response.py +21 -0
  410. whitebit/types/ping_response_result.py +5 -0
  411. whitebit/types/positions_subscribe.py +32 -0
  412. whitebit/types/positions_update.py +30 -0
  413. whitebit/types/positions_update_params.py +25 -0
  414. whitebit/types/positions_update_params_records_item.py +99 -0
  415. whitebit/types/positions_update_params_records_item_liq_stage.py +5 -0
  416. whitebit/types/positions_update_params_records_item_position_side.py +5 -0
  417. whitebit/types/provider_fee_details.py +28 -0
  418. whitebit/types/sub_account.py +63 -0
  419. whitebit/types/sub_account_api_key.py +84 -0
  420. whitebit/types/sub_account_api_key_access_endpoints_item.py +27 -0
  421. whitebit/types/sub_account_api_key_list.py +39 -0
  422. whitebit/types/sub_account_api_key_list_access_endpoints_item.py +20 -0
  423. whitebit/types/sub_account_kyc.py +37 -0
  424. whitebit/types/sub_account_permissions.py +37 -0
  425. whitebit/types/sub_account_transfer.py +53 -0
  426. whitebit/types/subscription_response.py +29 -0
  427. whitebit/types/subscription_response_result.py +22 -0
  428. whitebit/types/time_request.py +25 -0
  429. whitebit/types/time_response.py +23 -0
  430. whitebit/types/trade.py +48 -0
  431. whitebit/types/trade_type.py +5 -0
  432. whitebit/types/trades_request.py +35 -0
  433. whitebit/types/trades_response.py +22 -0
  434. whitebit/types/trades_subscribe.py +28 -0
  435. whitebit/types/trades_update.py +30 -0
  436. whitebit/types/transaction_history.py +108 -0
  437. whitebit/types/transaction_history_confirmations.py +31 -0
  438. whitebit/types/unprocessable_entity_error_body.py +20 -0
  439. whitebit/types/unsubscribe_request.py +32 -0
  440. whitebit/withdraw/__init__.py +11 -0
  441. whitebit/withdraw/client.py +496 -0
  442. whitebit/withdraw/raw_client.py +634 -0
  443. whitebit/withdraw/types/__init__.py +9 -0
  444. whitebit/withdraw/types/create_withdraw_request_beneficiary.py +74 -0
  445. whitebit/withdraw/types/create_withdraw_request_travel_rule.py +52 -0
  446. whitebit/withdraw/types/create_withdraw_request_travel_rule_type.py +5 -0
  447. whitebit_python_sdk-1.1.0.dist-info/METADATA +155 -0
  448. whitebit_python_sdk-1.1.0.dist-info/RECORD +451 -0
  449. whitebit_python_sdk-1.1.0.dist-info/WHEEL +5 -0
  450. whitebit_python_sdk-1.1.0.dist-info/licenses/LICENSE +20 -0
  451. whitebit_python_sdk-1.1.0.dist-info/top_level.txt +1 -0
whitebit/__init__.py ADDED
@@ -0,0 +1,793 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ from .types import (
6
+ Asset,
7
+ AssetLimits,
8
+ AssetLimitsDepositValue,
9
+ AssetLimitsWithdrawValue,
10
+ AssetMemo,
11
+ AssetNetworks,
12
+ AssetProviders,
13
+ AuthorizeRequest,
14
+ AuthorizeResponse,
15
+ AuthorizeResponseResult,
16
+ BadRequestErrorBody,
17
+ BalanceMarginRequest,
18
+ BalanceMarginResponse,
19
+ BalanceMarginResponseResultValue,
20
+ BalanceMarginSubscribe,
21
+ BalanceMarginUpdate,
22
+ BalanceMarginUpdateParamsItem,
23
+ BalanceSpotRequest,
24
+ BalanceSpotResponse,
25
+ BalanceSpotResponseResultValue,
26
+ BalanceSpotSubscribe,
27
+ BalanceSpotUpdate,
28
+ BalanceSpotUpdateParamsItemValue,
29
+ BaseRequest,
30
+ BaseResponse,
31
+ BookTickerSubscribe,
32
+ BookTickerUpdate,
33
+ BookTickerUpdateData,
34
+ BorrowsEventsSubscribe,
35
+ BorrowsEventsUpdate,
36
+ BorrowsSubscribe,
37
+ BorrowsUpdate,
38
+ BorrowsUpdateParams,
39
+ BorrowsUpdateParamsRecordsItem,
40
+ BulkLimitOrderResponse,
41
+ BulkLimitOrderResponseItem,
42
+ BulkOrderItem,
43
+ BulkOrderItemSide,
44
+ Candle,
45
+ CandlesRequest,
46
+ CandlesResponse,
47
+ CandlesSubscribe,
48
+ CandlesUpdate,
49
+ CodeHistory,
50
+ CodeInfo,
51
+ ConvertConfirmResponse,
52
+ ConvertEstimateRequestDirection,
53
+ ConvertEstimateResponse,
54
+ ConvertHistoryResponse,
55
+ ConvertHistoryResponseRecordsItem,
56
+ ConvertHistoryResponseRecordsItemPathItem,
57
+ CreditLine,
58
+ DealsRequest,
59
+ DealsResponse,
60
+ DealsResponseResult,
61
+ DealsResponseResultRecordsItem,
62
+ DealsSubscribe,
63
+ DealsUpdate,
64
+ DepthLevel,
65
+ DepthRequest,
66
+ DepthResponse,
67
+ DepthSubscribe,
68
+ DepthUpdate,
69
+ DepthUpdateData,
70
+ Error,
71
+ ErrorInner,
72
+ ErrorResponse,
73
+ ErrorV4,
74
+ ExecutedOrderObject,
75
+ ExecutedOrderObjectPositionSide,
76
+ ExecutedOrderObjectStp,
77
+ FeeDetails,
78
+ FeeDetailsFlex,
79
+ FeeInfo,
80
+ FeeInfoDeposit,
81
+ FeeInfoWithdraw,
82
+ FixedPlan,
83
+ FlexInvestment,
84
+ FlexInvestmentHistory,
85
+ FlexPlan,
86
+ FuturesMarket,
87
+ InterestPayment,
88
+ Investment,
89
+ LastpriceRequest,
90
+ LastpriceResponse,
91
+ LastpriceSubscribe,
92
+ LastpriceUpdate,
93
+ MarginPositionsEventsSubscribe,
94
+ MarginPositionsEventsUpdate,
95
+ MarketOrderRequest,
96
+ MarketOrderRequestSide,
97
+ MarketOrderRequestStp,
98
+ MarketRequest,
99
+ MarketResponse,
100
+ MarketStatistics,
101
+ MarketSubscribe,
102
+ MarketTodayRequest,
103
+ MarketTodayResponse,
104
+ MarketTodayStatistics,
105
+ MarketTodaySubscribe,
106
+ MarketTodayUpdate,
107
+ MarketUpdate,
108
+ MiningReward,
109
+ NotFoundErrorBody,
110
+ OrderBook,
111
+ OrderObject,
112
+ OrderObjectPositionSide,
113
+ OrderObjectStp,
114
+ OrderResponse,
115
+ OrderbookResponse,
116
+ OrdersExecutedRequest,
117
+ OrdersExecutedResponse,
118
+ OrdersExecutedResponseResult,
119
+ OrdersExecutedSubscribe,
120
+ OrdersExecutedUpdate,
121
+ OrdersPendingRequest,
122
+ OrdersPendingResponse,
123
+ OrdersPendingResponseResult,
124
+ OrdersPendingSubscribe,
125
+ OrdersPendingUpdate,
126
+ PingRequest,
127
+ PingResponse,
128
+ PingResponseResult,
129
+ PositionsSubscribe,
130
+ PositionsUpdate,
131
+ PositionsUpdateParams,
132
+ PositionsUpdateParamsRecordsItem,
133
+ PositionsUpdateParamsRecordsItemLiqStage,
134
+ PositionsUpdateParamsRecordsItemPositionSide,
135
+ ProviderFeeDetails,
136
+ SubAccount,
137
+ SubAccountApiKey,
138
+ SubAccountApiKeyAccessEndpointsItem,
139
+ SubAccountApiKeyList,
140
+ SubAccountApiKeyListAccessEndpointsItem,
141
+ SubAccountKyc,
142
+ SubAccountPermissions,
143
+ SubAccountTransfer,
144
+ SubscriptionResponse,
145
+ SubscriptionResponseResult,
146
+ TimeRequest,
147
+ TimeResponse,
148
+ Trade,
149
+ TradeType,
150
+ TradesRequest,
151
+ TradesResponse,
152
+ TradesSubscribe,
153
+ TradesUpdate,
154
+ TransactionHistory,
155
+ TransactionHistoryConfirmations,
156
+ UnprocessableEntityErrorBody,
157
+ UnsubscribeRequest,
158
+ )
159
+ from .errors import (
160
+ BadRequestError,
161
+ InternalServerError,
162
+ NotFoundError,
163
+ ServiceUnavailableError,
164
+ UnauthorizedError,
165
+ UnprocessableEntityError,
166
+ )
167
+ from . import (
168
+ codes,
169
+ collateral_trading,
170
+ credit_line,
171
+ crypto_lending_fixed,
172
+ crypto_lending_flex,
173
+ deposit,
174
+ fees,
175
+ jwt,
176
+ main_account,
177
+ market_fee,
178
+ mining_pool,
179
+ public_api_v4,
180
+ spot_trading,
181
+ sub_account,
182
+ sub_account_api_keys,
183
+ transfer,
184
+ withdraw,
185
+ )
186
+ from .client import AsyncWhitebitApi, WhitebitApi
187
+ from .codes import ApplyCodeResponse, CreateCodeResponse, GetCodesHistoryResponse, GetMyCodesResponse
188
+ from .collateral_trading import (
189
+ CancelOcoOrderResponse,
190
+ CancelOcoOrderResponseStopLoss,
191
+ CancelOcoOrderResponseStopLossActivationCondition,
192
+ CancelOcoOrderResponseStopLossSide,
193
+ CancelOcoOrderResponseTakeProfit,
194
+ CancelOcoOrderResponseTakeProfitSide,
195
+ ChangeCollateralAccountLeverageResponse,
196
+ ClosePositionRequestPositionSide,
197
+ CollateralAccountBalanceSummaryResponseItem,
198
+ CollateralAccountSummaryResponse,
199
+ CreateCollateralBulkOrderRequestOrdersItem,
200
+ CreateCollateralBulkOrderRequestOrdersItemPositionSide,
201
+ CreateCollateralBulkOrderRequestOrdersItemSide,
202
+ CreateCollateralBulkOrderResponseItem,
203
+ CreateCollateralBulkOrderResponseItemError,
204
+ CreateCollateralBulkOrderResponseItemResult,
205
+ CreateCollateralBulkOrderResponseItemResultPositionSide,
206
+ CreateCollateralBulkOrderResponseItemResultSide,
207
+ CreateCollateralBulkOrderResponseItemResultStatus,
208
+ CreateCollateralLimitOrderRequestPositionSide,
209
+ CreateCollateralLimitOrderRequestSide,
210
+ CreateCollateralLimitOrderResponse,
211
+ CreateCollateralLimitOrderResponseOto,
212
+ CreateCollateralLimitOrderResponsePositionSide,
213
+ CreateCollateralLimitOrderResponseSide,
214
+ CreateCollateralLimitOrderResponseStatus,
215
+ CreateCollateralMarketOrderRequestPositionSide,
216
+ CreateCollateralMarketOrderRequestSide,
217
+ CreateCollateralMarketOrderResponse,
218
+ CreateCollateralMarketOrderResponseOto,
219
+ CreateCollateralMarketOrderResponsePositionSide,
220
+ CreateCollateralMarketOrderResponseSide,
221
+ CreateCollateralMarketOrderResponseStatus,
222
+ CreateCollateralOcoOrderRequestSide,
223
+ CreateCollateralOcoOrderResponse,
224
+ CreateCollateralOcoOrderResponseStopLoss,
225
+ CreateCollateralOcoOrderResponseStopLossActivationCondition,
226
+ CreateCollateralOcoOrderResponseStopLossPositionSide,
227
+ CreateCollateralOcoOrderResponseStopLossSide,
228
+ CreateCollateralOcoOrderResponseStopLossStatus,
229
+ CreateCollateralOcoOrderResponseTakeProfit,
230
+ CreateCollateralOcoOrderResponseTakeProfitPositionSide,
231
+ CreateCollateralOcoOrderResponseTakeProfitSide,
232
+ CreateCollateralOcoOrderResponseTakeProfitStatus,
233
+ CreateCollateralStopLimitOrderRequestPositionSide,
234
+ CreateCollateralStopLimitOrderRequestSide,
235
+ CreateCollateralStopLimitOrderResponse,
236
+ CreateCollateralStopLimitOrderResponseOto,
237
+ CreateCollateralStopLimitOrderResponsePositionSide,
238
+ CreateCollateralStopLimitOrderResponseSide,
239
+ CreateCollateralStopLimitOrderResponseStatus,
240
+ CreateCollateralTriggerMarketOrderRequestPositionSide,
241
+ CreateCollateralTriggerMarketOrderRequestSide,
242
+ CreateCollateralTriggerMarketOrderResponse,
243
+ CreateCollateralTriggerMarketOrderResponseOto,
244
+ CreateCollateralTriggerMarketOrderResponsePositionSide,
245
+ CreateCollateralTriggerMarketOrderResponseSide,
246
+ CreateCollateralTriggerMarketOrderResponseStatus,
247
+ GetCollateralHedgeModeResponse,
248
+ GetConditionalOrdersResponse,
249
+ GetConditionalOrdersResponseRecordsItem,
250
+ GetConditionalOrdersResponseRecordsItemOco,
251
+ GetConditionalOrdersResponseRecordsItemOcoStopLoss,
252
+ GetConditionalOrdersResponseRecordsItemOcoStopLossPositionSide,
253
+ GetConditionalOrdersResponseRecordsItemOcoTakeProfit,
254
+ GetConditionalOrdersResponseRecordsItemOcoTakeProfitPositionSide,
255
+ GetConditionalOrdersResponseRecordsItemOto,
256
+ GetConditionalOrdersResponseRecordsItemOtoConditionalOrder,
257
+ GetConditionalOrdersResponseRecordsItemOtoConditionalOrderPositionSide,
258
+ GetConditionalOrdersResponseRecordsItem_Oco,
259
+ GetConditionalOrdersResponseRecordsItem_Oto,
260
+ GetFundingHistoryResponse,
261
+ GetFundingHistoryResponseRecordsItem,
262
+ GetOcoOrdersResponseItem,
263
+ GetOcoOrdersResponseItemStopLoss,
264
+ GetOcoOrdersResponseItemStopLossActivationCondition,
265
+ GetOcoOrdersResponseItemStopLossSide,
266
+ GetOcoOrdersResponseItemTakeProfit,
267
+ GetOcoOrdersResponseItemTakeProfitSide,
268
+ GetOpenPositionsResponseItem,
269
+ GetOpenPositionsResponseItemLiquidationState,
270
+ GetOpenPositionsResponseItemPositionSide,
271
+ GetOpenPositionsResponseItemTpsl,
272
+ GetPositionsHistoryResponseItem,
273
+ GetPositionsHistoryResponseItemLiquidationState,
274
+ GetPositionsHistoryResponseItemOrderDetail,
275
+ GetPositionsHistoryResponseItemPositionSide,
276
+ )
277
+ from .crypto_lending_fixed import (
278
+ CreateFixedInvestmentResponse,
279
+ GetFixedInvestmentsHistoryResponse,
280
+ GetInterestPaymentHistoryResponse,
281
+ )
282
+ from .crypto_lending_flex import (
283
+ CloseFlexInvestmentResponse,
284
+ CloseFlexInvestmentResponseData,
285
+ CreateFlexInvestmentResponse,
286
+ CreateFlexInvestmentResponseData,
287
+ GetFlexInvestmentHistoryResponse,
288
+ GetFlexPaymentHistoryResponse,
289
+ GetUserFlexInvestmentsResponse,
290
+ UpdateFlexAutoReinvestmentResponse,
291
+ WithdrawFromFlexInvestmentResponse,
292
+ WithdrawFromFlexInvestmentResponseData,
293
+ )
294
+ from .deposit import (
295
+ CreateNewAddressRequestType,
296
+ CreateNewAddressResponse,
297
+ CreateNewAddressResponseAccount,
298
+ CreateNewAddressResponseRequired,
299
+ CreateNewAddressResponseRequiredFlexFee,
300
+ GetDepositAddressResponse,
301
+ GetDepositAddressResponseAccount,
302
+ GetDepositAddressResponseRequired,
303
+ GetDepositAddressResponseRequiredFlexFee,
304
+ GetFiatDepositUrlRequestCustomer,
305
+ GetFiatDepositUrlRequestCustomerAddress,
306
+ GetFiatDepositUrlResponse,
307
+ RefundDepositResponse,
308
+ )
309
+ from .environment import WhitebitApiEnvironment
310
+ from .jwt import GetWebSocketTokenResponse, IssueJwtTokenResponse, IssueJwtTokenResponseData
311
+ from .main_account import GetDepositWithdrawHistoryResponse, GetMainBalanceResponseValue
312
+ from .market_fee import GetAllMarketFeesResponse, GetMarketFeeResponse
313
+ from .mining_pool import (
314
+ CreateMiningAccountResponse,
315
+ CreateMiningAccountResponseData,
316
+ CreateMiningWatcherLinkRequestLiveUntil,
317
+ CreateMiningWatcherLinkRequestPermissionsItem,
318
+ CreateMiningWatcherLinkResponse,
319
+ CreateMiningWatcherLinkResponseData,
320
+ GetMiningAccountsResponse,
321
+ GetMiningAccountsResponseDataItem,
322
+ GetMiningHashrateRequestInterval,
323
+ GetMiningHashrateResponse,
324
+ GetMiningHashrateResponseData,
325
+ GetMiningHashrateResponseDataHashrateItem,
326
+ GetMiningMinerInfoResponse,
327
+ GetMiningMinerInfoResponseData,
328
+ GetMiningMinerInfoResponseDataStratumItem,
329
+ GetMiningPayoutDestinationResponse,
330
+ GetMiningPayoutDestinationResponsePayoutDestination,
331
+ GetMiningRewardsResponse,
332
+ GetMiningWorkerHashrateRequestInterval,
333
+ GetMiningWorkerHashrateResponse,
334
+ GetMiningWorkerHashrateResponseData,
335
+ GetMiningWorkerHashrateResponseDataHashratesItem,
336
+ GetMiningWorkerNamesResponse,
337
+ GetMiningWorkerNamesResponseData,
338
+ ListMiningWatcherLinksResponse,
339
+ ListMiningWatcherLinksResponseDataItem,
340
+ SetMiningPayoutDestinationRequestDestination,
341
+ SetMiningPayoutDestinationResponse,
342
+ SetMiningPayoutDestinationResponsePayoutDestination,
343
+ )
344
+ from .public_api_v4 import (
345
+ GetApiV4PublicFundingHistoryMarketResponseItem,
346
+ GetApiV4PublicFuturesResponse,
347
+ GetApiV4PublicMarketsResponseItem,
348
+ GetApiV4PublicMarketsResponseItemType,
349
+ GetApiV4PublicMiningPoolResponse,
350
+ GetApiV4PublicMiningPoolResponseData,
351
+ GetApiV4PublicMiningPoolResponseDataBlocksItem,
352
+ GetApiV4PublicMiningPoolResponseDataLast7DaysHashRateItem,
353
+ GetApiV4PublicPlatformStatusResponse,
354
+ GetApiV4PublicTickerResponseValue,
355
+ GetApiV4PublicTimeResponse,
356
+ GetApiV4PublicTradesMarketRequestType,
357
+ GetApiV4PublicTradesMarketResponseItem,
358
+ GetApiV4PublicTradesMarketResponseItemType,
359
+ )
360
+ from .spot_trading import (
361
+ CancelAllOrdersRequestTypeItem,
362
+ GetExecutedOrderHistoryResponseValueItem,
363
+ GetExecutedOrderHistoryResponseValueItemSide,
364
+ GetKillSwitchStatusResponseItem,
365
+ GetKillSwitchStatusResponseItemTypesItem,
366
+ GetOrderDealsResponse,
367
+ GetOrderDealsResponseRecordsItem,
368
+ GetOrderHistoryResponseValueItem,
369
+ GetOrderHistoryResponseValueItemSide,
370
+ LimitOrderRequestSide,
371
+ LimitOrderRequestStp,
372
+ SetKillSwitchRequestTypesItem,
373
+ SetKillSwitchResponse,
374
+ SetKillSwitchResponseTypesItem,
375
+ StopLimitOrderRequestSide,
376
+ StopLimitOrderRequestStp,
377
+ StopMarketOrderRequestSide,
378
+ StopMarketOrderRequestStp,
379
+ TradeAccountBalanceResponseValue,
380
+ )
381
+ from .sub_account import (
382
+ CreateSubAccountRequestPermissions,
383
+ EditSubAccountRequestPermissions,
384
+ GetSubAccountBalancesResponseValueItem,
385
+ GetSubAccountTransferHistoryRequestDirection,
386
+ GetSubAccountTransferHistoryResponse,
387
+ ListSubAccountsResponse,
388
+ SubAccountTransferRequestDirection,
389
+ SubAccountTransferResponse,
390
+ )
391
+ from .sub_account_api_keys import (
392
+ CreateSubAccountApiKeyIpAddressResponse,
393
+ DeleteSubAccountApiKeyIpAddressResponse,
394
+ EditSubAccountApiKeyRequestUrlsItem,
395
+ ListSubAccountApiKeyIpAddressesResponse,
396
+ ListSubAccountApiKeysResponse,
397
+ )
398
+ from .transfer import (
399
+ TransferBetweenBalancesRequestFrom,
400
+ TransferBetweenBalancesRequestMethod,
401
+ TransferBetweenBalancesRequestTo,
402
+ )
403
+ from .withdraw import (
404
+ CreateWithdrawRequestBeneficiary,
405
+ CreateWithdrawRequestTravelRule,
406
+ CreateWithdrawRequestTravelRuleType,
407
+ )
408
+
409
+ __all__ = [
410
+ "ApplyCodeResponse",
411
+ "Asset",
412
+ "AssetLimits",
413
+ "AssetLimitsDepositValue",
414
+ "AssetLimitsWithdrawValue",
415
+ "AssetMemo",
416
+ "AssetNetworks",
417
+ "AssetProviders",
418
+ "AsyncWhitebitApi",
419
+ "AuthorizeRequest",
420
+ "AuthorizeResponse",
421
+ "AuthorizeResponseResult",
422
+ "BadRequestError",
423
+ "BadRequestErrorBody",
424
+ "BalanceMarginRequest",
425
+ "BalanceMarginResponse",
426
+ "BalanceMarginResponseResultValue",
427
+ "BalanceMarginSubscribe",
428
+ "BalanceMarginUpdate",
429
+ "BalanceMarginUpdateParamsItem",
430
+ "BalanceSpotRequest",
431
+ "BalanceSpotResponse",
432
+ "BalanceSpotResponseResultValue",
433
+ "BalanceSpotSubscribe",
434
+ "BalanceSpotUpdate",
435
+ "BalanceSpotUpdateParamsItemValue",
436
+ "BaseRequest",
437
+ "BaseResponse",
438
+ "BookTickerSubscribe",
439
+ "BookTickerUpdate",
440
+ "BookTickerUpdateData",
441
+ "BorrowsEventsSubscribe",
442
+ "BorrowsEventsUpdate",
443
+ "BorrowsSubscribe",
444
+ "BorrowsUpdate",
445
+ "BorrowsUpdateParams",
446
+ "BorrowsUpdateParamsRecordsItem",
447
+ "BulkLimitOrderResponse",
448
+ "BulkLimitOrderResponseItem",
449
+ "BulkOrderItem",
450
+ "BulkOrderItemSide",
451
+ "CancelAllOrdersRequestTypeItem",
452
+ "CancelOcoOrderResponse",
453
+ "CancelOcoOrderResponseStopLoss",
454
+ "CancelOcoOrderResponseStopLossActivationCondition",
455
+ "CancelOcoOrderResponseStopLossSide",
456
+ "CancelOcoOrderResponseTakeProfit",
457
+ "CancelOcoOrderResponseTakeProfitSide",
458
+ "Candle",
459
+ "CandlesRequest",
460
+ "CandlesResponse",
461
+ "CandlesSubscribe",
462
+ "CandlesUpdate",
463
+ "ChangeCollateralAccountLeverageResponse",
464
+ "CloseFlexInvestmentResponse",
465
+ "CloseFlexInvestmentResponseData",
466
+ "ClosePositionRequestPositionSide",
467
+ "CodeHistory",
468
+ "CodeInfo",
469
+ "CollateralAccountBalanceSummaryResponseItem",
470
+ "CollateralAccountSummaryResponse",
471
+ "ConvertConfirmResponse",
472
+ "ConvertEstimateRequestDirection",
473
+ "ConvertEstimateResponse",
474
+ "ConvertHistoryResponse",
475
+ "ConvertHistoryResponseRecordsItem",
476
+ "ConvertHistoryResponseRecordsItemPathItem",
477
+ "CreateCodeResponse",
478
+ "CreateCollateralBulkOrderRequestOrdersItem",
479
+ "CreateCollateralBulkOrderRequestOrdersItemPositionSide",
480
+ "CreateCollateralBulkOrderRequestOrdersItemSide",
481
+ "CreateCollateralBulkOrderResponseItem",
482
+ "CreateCollateralBulkOrderResponseItemError",
483
+ "CreateCollateralBulkOrderResponseItemResult",
484
+ "CreateCollateralBulkOrderResponseItemResultPositionSide",
485
+ "CreateCollateralBulkOrderResponseItemResultSide",
486
+ "CreateCollateralBulkOrderResponseItemResultStatus",
487
+ "CreateCollateralLimitOrderRequestPositionSide",
488
+ "CreateCollateralLimitOrderRequestSide",
489
+ "CreateCollateralLimitOrderResponse",
490
+ "CreateCollateralLimitOrderResponseOto",
491
+ "CreateCollateralLimitOrderResponsePositionSide",
492
+ "CreateCollateralLimitOrderResponseSide",
493
+ "CreateCollateralLimitOrderResponseStatus",
494
+ "CreateCollateralMarketOrderRequestPositionSide",
495
+ "CreateCollateralMarketOrderRequestSide",
496
+ "CreateCollateralMarketOrderResponse",
497
+ "CreateCollateralMarketOrderResponseOto",
498
+ "CreateCollateralMarketOrderResponsePositionSide",
499
+ "CreateCollateralMarketOrderResponseSide",
500
+ "CreateCollateralMarketOrderResponseStatus",
501
+ "CreateCollateralOcoOrderRequestSide",
502
+ "CreateCollateralOcoOrderResponse",
503
+ "CreateCollateralOcoOrderResponseStopLoss",
504
+ "CreateCollateralOcoOrderResponseStopLossActivationCondition",
505
+ "CreateCollateralOcoOrderResponseStopLossPositionSide",
506
+ "CreateCollateralOcoOrderResponseStopLossSide",
507
+ "CreateCollateralOcoOrderResponseStopLossStatus",
508
+ "CreateCollateralOcoOrderResponseTakeProfit",
509
+ "CreateCollateralOcoOrderResponseTakeProfitPositionSide",
510
+ "CreateCollateralOcoOrderResponseTakeProfitSide",
511
+ "CreateCollateralOcoOrderResponseTakeProfitStatus",
512
+ "CreateCollateralStopLimitOrderRequestPositionSide",
513
+ "CreateCollateralStopLimitOrderRequestSide",
514
+ "CreateCollateralStopLimitOrderResponse",
515
+ "CreateCollateralStopLimitOrderResponseOto",
516
+ "CreateCollateralStopLimitOrderResponsePositionSide",
517
+ "CreateCollateralStopLimitOrderResponseSide",
518
+ "CreateCollateralStopLimitOrderResponseStatus",
519
+ "CreateCollateralTriggerMarketOrderRequestPositionSide",
520
+ "CreateCollateralTriggerMarketOrderRequestSide",
521
+ "CreateCollateralTriggerMarketOrderResponse",
522
+ "CreateCollateralTriggerMarketOrderResponseOto",
523
+ "CreateCollateralTriggerMarketOrderResponsePositionSide",
524
+ "CreateCollateralTriggerMarketOrderResponseSide",
525
+ "CreateCollateralTriggerMarketOrderResponseStatus",
526
+ "CreateFixedInvestmentResponse",
527
+ "CreateFlexInvestmentResponse",
528
+ "CreateFlexInvestmentResponseData",
529
+ "CreateMiningAccountResponse",
530
+ "CreateMiningAccountResponseData",
531
+ "CreateMiningWatcherLinkRequestLiveUntil",
532
+ "CreateMiningWatcherLinkRequestPermissionsItem",
533
+ "CreateMiningWatcherLinkResponse",
534
+ "CreateMiningWatcherLinkResponseData",
535
+ "CreateNewAddressRequestType",
536
+ "CreateNewAddressResponse",
537
+ "CreateNewAddressResponseAccount",
538
+ "CreateNewAddressResponseRequired",
539
+ "CreateNewAddressResponseRequiredFlexFee",
540
+ "CreateSubAccountApiKeyIpAddressResponse",
541
+ "CreateSubAccountRequestPermissions",
542
+ "CreateWithdrawRequestBeneficiary",
543
+ "CreateWithdrawRequestTravelRule",
544
+ "CreateWithdrawRequestTravelRuleType",
545
+ "CreditLine",
546
+ "DealsRequest",
547
+ "DealsResponse",
548
+ "DealsResponseResult",
549
+ "DealsResponseResultRecordsItem",
550
+ "DealsSubscribe",
551
+ "DealsUpdate",
552
+ "DeleteSubAccountApiKeyIpAddressResponse",
553
+ "DepthLevel",
554
+ "DepthRequest",
555
+ "DepthResponse",
556
+ "DepthSubscribe",
557
+ "DepthUpdate",
558
+ "DepthUpdateData",
559
+ "EditSubAccountApiKeyRequestUrlsItem",
560
+ "EditSubAccountRequestPermissions",
561
+ "Error",
562
+ "ErrorInner",
563
+ "ErrorResponse",
564
+ "ErrorV4",
565
+ "ExecutedOrderObject",
566
+ "ExecutedOrderObjectPositionSide",
567
+ "ExecutedOrderObjectStp",
568
+ "FeeDetails",
569
+ "FeeDetailsFlex",
570
+ "FeeInfo",
571
+ "FeeInfoDeposit",
572
+ "FeeInfoWithdraw",
573
+ "FixedPlan",
574
+ "FlexInvestment",
575
+ "FlexInvestmentHistory",
576
+ "FlexPlan",
577
+ "FuturesMarket",
578
+ "GetAllMarketFeesResponse",
579
+ "GetApiV4PublicFundingHistoryMarketResponseItem",
580
+ "GetApiV4PublicFuturesResponse",
581
+ "GetApiV4PublicMarketsResponseItem",
582
+ "GetApiV4PublicMarketsResponseItemType",
583
+ "GetApiV4PublicMiningPoolResponse",
584
+ "GetApiV4PublicMiningPoolResponseData",
585
+ "GetApiV4PublicMiningPoolResponseDataBlocksItem",
586
+ "GetApiV4PublicMiningPoolResponseDataLast7DaysHashRateItem",
587
+ "GetApiV4PublicPlatformStatusResponse",
588
+ "GetApiV4PublicTickerResponseValue",
589
+ "GetApiV4PublicTimeResponse",
590
+ "GetApiV4PublicTradesMarketRequestType",
591
+ "GetApiV4PublicTradesMarketResponseItem",
592
+ "GetApiV4PublicTradesMarketResponseItemType",
593
+ "GetCodesHistoryResponse",
594
+ "GetCollateralHedgeModeResponse",
595
+ "GetConditionalOrdersResponse",
596
+ "GetConditionalOrdersResponseRecordsItem",
597
+ "GetConditionalOrdersResponseRecordsItemOco",
598
+ "GetConditionalOrdersResponseRecordsItemOcoStopLoss",
599
+ "GetConditionalOrdersResponseRecordsItemOcoStopLossPositionSide",
600
+ "GetConditionalOrdersResponseRecordsItemOcoTakeProfit",
601
+ "GetConditionalOrdersResponseRecordsItemOcoTakeProfitPositionSide",
602
+ "GetConditionalOrdersResponseRecordsItemOto",
603
+ "GetConditionalOrdersResponseRecordsItemOtoConditionalOrder",
604
+ "GetConditionalOrdersResponseRecordsItemOtoConditionalOrderPositionSide",
605
+ "GetConditionalOrdersResponseRecordsItem_Oco",
606
+ "GetConditionalOrdersResponseRecordsItem_Oto",
607
+ "GetDepositAddressResponse",
608
+ "GetDepositAddressResponseAccount",
609
+ "GetDepositAddressResponseRequired",
610
+ "GetDepositAddressResponseRequiredFlexFee",
611
+ "GetDepositWithdrawHistoryResponse",
612
+ "GetExecutedOrderHistoryResponseValueItem",
613
+ "GetExecutedOrderHistoryResponseValueItemSide",
614
+ "GetFiatDepositUrlRequestCustomer",
615
+ "GetFiatDepositUrlRequestCustomerAddress",
616
+ "GetFiatDepositUrlResponse",
617
+ "GetFixedInvestmentsHistoryResponse",
618
+ "GetFlexInvestmentHistoryResponse",
619
+ "GetFlexPaymentHistoryResponse",
620
+ "GetFundingHistoryResponse",
621
+ "GetFundingHistoryResponseRecordsItem",
622
+ "GetInterestPaymentHistoryResponse",
623
+ "GetKillSwitchStatusResponseItem",
624
+ "GetKillSwitchStatusResponseItemTypesItem",
625
+ "GetMainBalanceResponseValue",
626
+ "GetMarketFeeResponse",
627
+ "GetMiningAccountsResponse",
628
+ "GetMiningAccountsResponseDataItem",
629
+ "GetMiningHashrateRequestInterval",
630
+ "GetMiningHashrateResponse",
631
+ "GetMiningHashrateResponseData",
632
+ "GetMiningHashrateResponseDataHashrateItem",
633
+ "GetMiningMinerInfoResponse",
634
+ "GetMiningMinerInfoResponseData",
635
+ "GetMiningMinerInfoResponseDataStratumItem",
636
+ "GetMiningPayoutDestinationResponse",
637
+ "GetMiningPayoutDestinationResponsePayoutDestination",
638
+ "GetMiningRewardsResponse",
639
+ "GetMiningWorkerHashrateRequestInterval",
640
+ "GetMiningWorkerHashrateResponse",
641
+ "GetMiningWorkerHashrateResponseData",
642
+ "GetMiningWorkerHashrateResponseDataHashratesItem",
643
+ "GetMiningWorkerNamesResponse",
644
+ "GetMiningWorkerNamesResponseData",
645
+ "GetMyCodesResponse",
646
+ "GetOcoOrdersResponseItem",
647
+ "GetOcoOrdersResponseItemStopLoss",
648
+ "GetOcoOrdersResponseItemStopLossActivationCondition",
649
+ "GetOcoOrdersResponseItemStopLossSide",
650
+ "GetOcoOrdersResponseItemTakeProfit",
651
+ "GetOcoOrdersResponseItemTakeProfitSide",
652
+ "GetOpenPositionsResponseItem",
653
+ "GetOpenPositionsResponseItemLiquidationState",
654
+ "GetOpenPositionsResponseItemPositionSide",
655
+ "GetOpenPositionsResponseItemTpsl",
656
+ "GetOrderDealsResponse",
657
+ "GetOrderDealsResponseRecordsItem",
658
+ "GetOrderHistoryResponseValueItem",
659
+ "GetOrderHistoryResponseValueItemSide",
660
+ "GetPositionsHistoryResponseItem",
661
+ "GetPositionsHistoryResponseItemLiquidationState",
662
+ "GetPositionsHistoryResponseItemOrderDetail",
663
+ "GetPositionsHistoryResponseItemPositionSide",
664
+ "GetSubAccountBalancesResponseValueItem",
665
+ "GetSubAccountTransferHistoryRequestDirection",
666
+ "GetSubAccountTransferHistoryResponse",
667
+ "GetUserFlexInvestmentsResponse",
668
+ "GetWebSocketTokenResponse",
669
+ "InterestPayment",
670
+ "InternalServerError",
671
+ "Investment",
672
+ "IssueJwtTokenResponse",
673
+ "IssueJwtTokenResponseData",
674
+ "LastpriceRequest",
675
+ "LastpriceResponse",
676
+ "LastpriceSubscribe",
677
+ "LastpriceUpdate",
678
+ "LimitOrderRequestSide",
679
+ "LimitOrderRequestStp",
680
+ "ListMiningWatcherLinksResponse",
681
+ "ListMiningWatcherLinksResponseDataItem",
682
+ "ListSubAccountApiKeyIpAddressesResponse",
683
+ "ListSubAccountApiKeysResponse",
684
+ "ListSubAccountsResponse",
685
+ "MarginPositionsEventsSubscribe",
686
+ "MarginPositionsEventsUpdate",
687
+ "MarketOrderRequest",
688
+ "MarketOrderRequestSide",
689
+ "MarketOrderRequestStp",
690
+ "MarketRequest",
691
+ "MarketResponse",
692
+ "MarketStatistics",
693
+ "MarketSubscribe",
694
+ "MarketTodayRequest",
695
+ "MarketTodayResponse",
696
+ "MarketTodayStatistics",
697
+ "MarketTodaySubscribe",
698
+ "MarketTodayUpdate",
699
+ "MarketUpdate",
700
+ "MiningReward",
701
+ "NotFoundError",
702
+ "NotFoundErrorBody",
703
+ "OrderBook",
704
+ "OrderObject",
705
+ "OrderObjectPositionSide",
706
+ "OrderObjectStp",
707
+ "OrderResponse",
708
+ "OrderbookResponse",
709
+ "OrdersExecutedRequest",
710
+ "OrdersExecutedResponse",
711
+ "OrdersExecutedResponseResult",
712
+ "OrdersExecutedSubscribe",
713
+ "OrdersExecutedUpdate",
714
+ "OrdersPendingRequest",
715
+ "OrdersPendingResponse",
716
+ "OrdersPendingResponseResult",
717
+ "OrdersPendingSubscribe",
718
+ "OrdersPendingUpdate",
719
+ "PingRequest",
720
+ "PingResponse",
721
+ "PingResponseResult",
722
+ "PositionsSubscribe",
723
+ "PositionsUpdate",
724
+ "PositionsUpdateParams",
725
+ "PositionsUpdateParamsRecordsItem",
726
+ "PositionsUpdateParamsRecordsItemLiqStage",
727
+ "PositionsUpdateParamsRecordsItemPositionSide",
728
+ "ProviderFeeDetails",
729
+ "RefundDepositResponse",
730
+ "ServiceUnavailableError",
731
+ "SetKillSwitchRequestTypesItem",
732
+ "SetKillSwitchResponse",
733
+ "SetKillSwitchResponseTypesItem",
734
+ "SetMiningPayoutDestinationRequestDestination",
735
+ "SetMiningPayoutDestinationResponse",
736
+ "SetMiningPayoutDestinationResponsePayoutDestination",
737
+ "StopLimitOrderRequestSide",
738
+ "StopLimitOrderRequestStp",
739
+ "StopMarketOrderRequestSide",
740
+ "StopMarketOrderRequestStp",
741
+ "SubAccount",
742
+ "SubAccountApiKey",
743
+ "SubAccountApiKeyAccessEndpointsItem",
744
+ "SubAccountApiKeyList",
745
+ "SubAccountApiKeyListAccessEndpointsItem",
746
+ "SubAccountKyc",
747
+ "SubAccountPermissions",
748
+ "SubAccountTransfer",
749
+ "SubAccountTransferRequestDirection",
750
+ "SubAccountTransferResponse",
751
+ "SubscriptionResponse",
752
+ "SubscriptionResponseResult",
753
+ "TimeRequest",
754
+ "TimeResponse",
755
+ "Trade",
756
+ "TradeAccountBalanceResponseValue",
757
+ "TradeType",
758
+ "TradesRequest",
759
+ "TradesResponse",
760
+ "TradesSubscribe",
761
+ "TradesUpdate",
762
+ "TransactionHistory",
763
+ "TransactionHistoryConfirmations",
764
+ "TransferBetweenBalancesRequestFrom",
765
+ "TransferBetweenBalancesRequestMethod",
766
+ "TransferBetweenBalancesRequestTo",
767
+ "UnauthorizedError",
768
+ "UnprocessableEntityError",
769
+ "UnprocessableEntityErrorBody",
770
+ "UnsubscribeRequest",
771
+ "UpdateFlexAutoReinvestmentResponse",
772
+ "WhitebitApi",
773
+ "WhitebitApiEnvironment",
774
+ "WithdrawFromFlexInvestmentResponse",
775
+ "WithdrawFromFlexInvestmentResponseData",
776
+ "codes",
777
+ "collateral_trading",
778
+ "credit_line",
779
+ "crypto_lending_fixed",
780
+ "crypto_lending_flex",
781
+ "deposit",
782
+ "fees",
783
+ "jwt",
784
+ "main_account",
785
+ "market_fee",
786
+ "mining_pool",
787
+ "public_api_v4",
788
+ "spot_trading",
789
+ "sub_account",
790
+ "sub_account_api_keys",
791
+ "transfer",
792
+ "withdraw",
793
+ ]