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.
- whitebit/__init__.py +793 -0
- whitebit/client.py +580 -0
- whitebit/codes/__init__.py +7 -0
- whitebit/codes/client.py +510 -0
- whitebit/codes/raw_client.py +809 -0
- whitebit/codes/types/__init__.py +10 -0
- whitebit/codes/types/apply_code_response.py +22 -0
- whitebit/codes/types/create_code_response.py +32 -0
- whitebit/codes/types/get_codes_history_response.py +27 -0
- whitebit/codes/types/get_my_codes_response.py +27 -0
- whitebit/collateral_trading/__init__.py +183 -0
- whitebit/collateral_trading/client.py +2452 -0
- whitebit/collateral_trading/raw_client.py +4337 -0
- whitebit/collateral_trading/types/__init__.py +213 -0
- whitebit/collateral_trading/types/cancel_oco_order_response.py +34 -0
- whitebit/collateral_trading/types/cancel_oco_order_response_stop_loss.py +146 -0
- whitebit/collateral_trading/types/cancel_oco_order_response_stop_loss_activation_condition.py +5 -0
- whitebit/collateral_trading/types/cancel_oco_order_response_stop_loss_side.py +5 -0
- whitebit/collateral_trading/types/cancel_oco_order_response_take_profit.py +114 -0
- whitebit/collateral_trading/types/cancel_oco_order_response_take_profit_side.py +5 -0
- whitebit/collateral_trading/types/change_collateral_account_leverage_response.py +22 -0
- whitebit/collateral_trading/types/close_position_request_position_side.py +5 -0
- whitebit/collateral_trading/types/collateral_account_balance_summary_response_item.py +48 -0
- whitebit/collateral_trading/types/collateral_account_summary_response.py +60 -0
- whitebit/collateral_trading/types/create_collateral_bulk_order_request_orders_item.py +98 -0
- whitebit/collateral_trading/types/create_collateral_bulk_order_request_orders_item_position_side.py +7 -0
- whitebit/collateral_trading/types/create_collateral_bulk_order_request_orders_item_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_bulk_order_response_item.py +29 -0
- whitebit/collateral_trading/types/create_collateral_bulk_order_response_item_error.py +36 -0
- whitebit/collateral_trading/types/create_collateral_bulk_order_response_item_result.py +132 -0
- whitebit/collateral_trading/types/create_collateral_bulk_order_response_item_result_position_side.py +7 -0
- whitebit/collateral_trading/types/create_collateral_bulk_order_response_item_result_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_bulk_order_response_item_result_status.py +7 -0
- whitebit/collateral_trading/types/create_collateral_limit_order_request_position_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_limit_order_request_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_limit_order_response.py +132 -0
- whitebit/collateral_trading/types/create_collateral_limit_order_response_oto.py +44 -0
- whitebit/collateral_trading/types/create_collateral_limit_order_response_position_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_limit_order_response_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_limit_order_response_status.py +7 -0
- whitebit/collateral_trading/types/create_collateral_market_order_request_position_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_market_order_request_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_market_order_response.py +110 -0
- whitebit/collateral_trading/types/create_collateral_market_order_response_oto.py +44 -0
- whitebit/collateral_trading/types/create_collateral_market_order_response_position_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_market_order_response_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_market_order_response_status.py +7 -0
- whitebit/collateral_trading/types/create_collateral_oco_order_request_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_oco_order_response.py +34 -0
- whitebit/collateral_trading/types/create_collateral_oco_order_response_stop_loss.py +159 -0
- whitebit/collateral_trading/types/create_collateral_oco_order_response_stop_loss_activation_condition.py +5 -0
- whitebit/collateral_trading/types/create_collateral_oco_order_response_stop_loss_position_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_oco_order_response_stop_loss_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_oco_order_response_stop_loss_status.py +7 -0
- whitebit/collateral_trading/types/create_collateral_oco_order_response_take_profit.py +139 -0
- whitebit/collateral_trading/types/create_collateral_oco_order_response_take_profit_position_side.py +7 -0
- whitebit/collateral_trading/types/create_collateral_oco_order_response_take_profit_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_oco_order_response_take_profit_status.py +7 -0
- whitebit/collateral_trading/types/create_collateral_stop_limit_order_request_position_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_stop_limit_order_request_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_stop_limit_order_response.py +122 -0
- whitebit/collateral_trading/types/create_collateral_stop_limit_order_response_oto.py +44 -0
- whitebit/collateral_trading/types/create_collateral_stop_limit_order_response_position_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_stop_limit_order_response_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_stop_limit_order_response_status.py +7 -0
- whitebit/collateral_trading/types/create_collateral_trigger_market_order_request_position_side.py +7 -0
- whitebit/collateral_trading/types/create_collateral_trigger_market_order_request_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_trigger_market_order_response.py +117 -0
- whitebit/collateral_trading/types/create_collateral_trigger_market_order_response_oto.py +44 -0
- whitebit/collateral_trading/types/create_collateral_trigger_market_order_response_position_side.py +7 -0
- whitebit/collateral_trading/types/create_collateral_trigger_market_order_response_side.py +5 -0
- whitebit/collateral_trading/types/create_collateral_trigger_market_order_response_status.py +7 -0
- whitebit/collateral_trading/types/get_collateral_hedge_mode_response.py +26 -0
- whitebit/collateral_trading/types/get_conditional_orders_response.py +38 -0
- whitebit/collateral_trading/types/get_conditional_orders_response_records_item.py +60 -0
- whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oco.py +31 -0
- whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oco_stop_loss.py +28 -0
- whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oco_stop_loss_position_side.py +7 -0
- whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oco_take_profit.py +28 -0
- whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oco_take_profit_position_side.py +7 -0
- whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oto.py +34 -0
- whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oto_conditional_order.py +30 -0
- whitebit/collateral_trading/types/get_conditional_orders_response_records_item_oto_conditional_order_position_side.py +7 -0
- whitebit/collateral_trading/types/get_funding_history_response.py +33 -0
- whitebit/collateral_trading/types/get_funding_history_response_records_item.py +66 -0
- whitebit/collateral_trading/types/get_oco_orders_response_item.py +34 -0
- whitebit/collateral_trading/types/get_oco_orders_response_item_stop_loss.py +49 -0
- whitebit/collateral_trading/types/get_oco_orders_response_item_stop_loss_activation_condition.py +5 -0
- whitebit/collateral_trading/types/get_oco_orders_response_item_stop_loss_side.py +5 -0
- whitebit/collateral_trading/types/get_oco_orders_response_item_take_profit.py +43 -0
- whitebit/collateral_trading/types/get_oco_orders_response_item_take_profit_side.py +5 -0
- whitebit/collateral_trading/types/get_open_positions_response_item.py +136 -0
- whitebit/collateral_trading/types/get_open_positions_response_item_liquidation_state.py +5 -0
- whitebit/collateral_trading/types/get_open_positions_response_item_position_side.py +5 -0
- whitebit/collateral_trading/types/get_open_positions_response_item_tpsl.py +51 -0
- whitebit/collateral_trading/types/get_positions_history_response_item.py +95 -0
- whitebit/collateral_trading/types/get_positions_history_response_item_liquidation_state.py +5 -0
- whitebit/collateral_trading/types/get_positions_history_response_item_order_detail.py +61 -0
- whitebit/collateral_trading/types/get_positions_history_response_item_position_side.py +5 -0
- whitebit/core/__init__.py +52 -0
- whitebit/core/api_error.py +23 -0
- whitebit/core/client_wrapper.py +57 -0
- whitebit/core/datetime_utils.py +28 -0
- whitebit/core/file.py +67 -0
- whitebit/core/http_client.py +497 -0
- whitebit/core/http_response.py +55 -0
- whitebit/core/jsonable_encoder.py +100 -0
- whitebit/core/pydantic_utilities.py +255 -0
- whitebit/core/query_encoder.py +58 -0
- whitebit/core/remove_none_from_dict.py +11 -0
- whitebit/core/request_options.py +35 -0
- whitebit/core/serialization.py +276 -0
- whitebit/credit_line/__init__.py +4 -0
- whitebit/credit_line/client.py +128 -0
- whitebit/credit_line/raw_client.py +191 -0
- whitebit/crypto_lending_fixed/__init__.py +7 -0
- whitebit/crypto_lending_fixed/client.py +651 -0
- whitebit/crypto_lending_fixed/raw_client.py +931 -0
- whitebit/crypto_lending_fixed/types/__init__.py +9 -0
- whitebit/crypto_lending_fixed/types/create_fixed_investment_response.py +22 -0
- whitebit/crypto_lending_fixed/types/get_fixed_investments_history_response.py +22 -0
- whitebit/crypto_lending_fixed/types/get_interest_payment_history_response.py +22 -0
- whitebit/crypto_lending_flex/__init__.py +29 -0
- whitebit/crypto_lending_flex/client.py +1140 -0
- whitebit/crypto_lending_flex/raw_client.py +1651 -0
- whitebit/crypto_lending_flex/types/__init__.py +27 -0
- whitebit/crypto_lending_flex/types/close_flex_investment_response.py +20 -0
- whitebit/crypto_lending_flex/types/close_flex_investment_response_data.py +26 -0
- whitebit/crypto_lending_flex/types/create_flex_investment_response.py +20 -0
- whitebit/crypto_lending_flex/types/create_flex_investment_response_data.py +26 -0
- whitebit/crypto_lending_flex/types/get_flex_investment_history_response.py +22 -0
- whitebit/crypto_lending_flex/types/get_flex_payment_history_response.py +22 -0
- whitebit/crypto_lending_flex/types/get_user_flex_investments_response.py +22 -0
- whitebit/crypto_lending_flex/types/update_flex_auto_reinvestment_response.py +19 -0
- whitebit/crypto_lending_flex/types/withdraw_from_flex_investment_response.py +20 -0
- whitebit/crypto_lending_flex/types/withdraw_from_flex_investment_response_data.py +26 -0
- whitebit/deposit/__init__.py +35 -0
- whitebit/deposit/client.py +997 -0
- whitebit/deposit/raw_client.py +1342 -0
- whitebit/deposit/types/__init__.py +33 -0
- whitebit/deposit/types/create_new_address_request_type.py +5 -0
- whitebit/deposit/types/create_new_address_response.py +22 -0
- whitebit/deposit/types/create_new_address_response_account.py +27 -0
- whitebit/deposit/types/create_new_address_response_required.py +48 -0
- whitebit/deposit/types/create_new_address_response_required_flex_fee.py +42 -0
- whitebit/deposit/types/get_deposit_address_response.py +22 -0
- whitebit/deposit/types/get_deposit_address_response_account.py +27 -0
- whitebit/deposit/types/get_deposit_address_response_required.py +48 -0
- whitebit/deposit/types/get_deposit_address_response_required_flex_fee.py +42 -0
- whitebit/deposit/types/get_fiat_deposit_url_request_customer.py +61 -0
- whitebit/deposit/types/get_fiat_deposit_url_request_customer_address.py +56 -0
- whitebit/deposit/types/get_fiat_deposit_url_response.py +22 -0
- whitebit/deposit/types/refund_deposit_response.py +22 -0
- whitebit/environment.py +17 -0
- whitebit/errors/__init__.py +19 -0
- whitebit/errors/bad_request_error.py +10 -0
- whitebit/errors/internal_server_error.py +10 -0
- whitebit/errors/not_found_error.py +11 -0
- whitebit/errors/service_unavailable_error.py +10 -0
- whitebit/errors/unauthorized_error.py +10 -0
- whitebit/errors/unprocessable_entity_error.py +10 -0
- whitebit/fees/__init__.py +4 -0
- whitebit/fees/client.py +126 -0
- whitebit/fees/raw_client.py +144 -0
- whitebit/jwt/__init__.py +7 -0
- whitebit/jwt/client.py +224 -0
- whitebit/jwt/raw_client.py +389 -0
- whitebit/jwt/types/__init__.py +9 -0
- whitebit/jwt/types/get_web_socket_token_response.py +22 -0
- whitebit/jwt/types/issue_jwt_token_response.py +20 -0
- whitebit/jwt/types/issue_jwt_token_response_data.py +27 -0
- whitebit/main_account/__init__.py +7 -0
- whitebit/main_account/client.py +380 -0
- whitebit/main_account/raw_client.py +493 -0
- whitebit/main_account/types/__init__.py +8 -0
- whitebit/main_account/types/get_deposit_withdraw_history_response.py +26 -0
- whitebit/main_account/types/get_main_balance_response_value.py +22 -0
- whitebit/market_fee/__init__.py +7 -0
- whitebit/market_fee/client.py +193 -0
- whitebit/market_fee/raw_client.py +267 -0
- whitebit/market_fee/types/__init__.py +8 -0
- whitebit/market_fee/types/get_all_market_fees_response.py +43 -0
- whitebit/market_fee/types/get_market_fee_response.py +38 -0
- whitebit/mining_pool/__init__.py +67 -0
- whitebit/mining_pool/client.py +1083 -0
- whitebit/mining_pool/raw_client.py +1695 -0
- whitebit/mining_pool/types/__init__.py +69 -0
- whitebit/mining_pool/types/create_mining_account_response.py +20 -0
- whitebit/mining_pool/types/create_mining_account_response_data.py +31 -0
- whitebit/mining_pool/types/create_mining_watcher_link_request_live_until.py +5 -0
- whitebit/mining_pool/types/create_mining_watcher_link_request_permissions_item.py +7 -0
- whitebit/mining_pool/types/create_mining_watcher_link_response.py +20 -0
- whitebit/mining_pool/types/create_mining_watcher_link_response_data.py +24 -0
- whitebit/mining_pool/types/get_mining_accounts_response.py +20 -0
- whitebit/mining_pool/types/get_mining_accounts_response_data_item.py +31 -0
- whitebit/mining_pool/types/get_mining_hashrate_request_interval.py +5 -0
- whitebit/mining_pool/types/get_mining_hashrate_response.py +20 -0
- whitebit/mining_pool/types/get_mining_hashrate_response_data.py +21 -0
- whitebit/mining_pool/types/get_mining_hashrate_response_data_hashrate_item.py +20 -0
- whitebit/mining_pool/types/get_mining_miner_info_response.py +20 -0
- whitebit/mining_pool/types/get_mining_miner_info_response_data.py +25 -0
- whitebit/mining_pool/types/get_mining_miner_info_response_data_stratum_item.py +22 -0
- whitebit/mining_pool/types/get_mining_payout_destination_response.py +36 -0
- whitebit/mining_pool/types/get_mining_payout_destination_response_payout_destination.py +7 -0
- whitebit/mining_pool/types/get_mining_rewards_response.py +22 -0
- whitebit/mining_pool/types/get_mining_worker_hashrate_request_interval.py +5 -0
- whitebit/mining_pool/types/get_mining_worker_hashrate_response.py +20 -0
- whitebit/mining_pool/types/get_mining_worker_hashrate_response_data.py +20 -0
- whitebit/mining_pool/types/get_mining_worker_hashrate_response_data_hashrates_item.py +23 -0
- whitebit/mining_pool/types/get_mining_worker_names_response.py +22 -0
- whitebit/mining_pool/types/get_mining_worker_names_response_data.py +19 -0
- whitebit/mining_pool/types/list_mining_watcher_links_response.py +20 -0
- whitebit/mining_pool/types/list_mining_watcher_links_response_data_item.py +27 -0
- whitebit/mining_pool/types/set_mining_payout_destination_request_destination.py +7 -0
- whitebit/mining_pool/types/set_mining_payout_destination_response.py +27 -0
- whitebit/mining_pool/types/set_mining_payout_destination_response_payout_destination.py +7 -0
- whitebit/public_api_v4/__init__.py +37 -0
- whitebit/public_api_v4/client.py +1096 -0
- whitebit/public_api_v4/raw_client.py +1398 -0
- whitebit/public_api_v4/types/__init__.py +37 -0
- whitebit/public_api_v4/types/get_api_v4public_funding_history_market_response_item.py +52 -0
- whitebit/public_api_v4/types/get_api_v4public_futures_response.py +22 -0
- whitebit/public_api_v4/types/get_api_v4public_markets_response_item.py +110 -0
- whitebit/public_api_v4/types/get_api_v4public_markets_response_item_type.py +5 -0
- whitebit/public_api_v4/types/get_api_v4public_mining_pool_response.py +20 -0
- whitebit/public_api_v4/types/get_api_v4public_mining_pool_response_data.py +39 -0
- whitebit/public_api_v4/types/get_api_v4public_mining_pool_response_data_blocks_item.py +22 -0
- whitebit/public_api_v4/types/get_api_v4public_mining_pool_response_data_last7days_hash_rate_item.py +20 -0
- whitebit/public_api_v4/types/get_api_v4public_platform_status_response.py +22 -0
- whitebit/public_api_v4/types/get_api_v4public_ticker_response_value.py +56 -0
- whitebit/public_api_v4/types/get_api_v4public_time_response.py +22 -0
- whitebit/public_api_v4/types/get_api_v4public_trades_market_request_type.py +5 -0
- whitebit/public_api_v4/types/get_api_v4public_trades_market_response_item.py +57 -0
- whitebit/public_api_v4/types/get_api_v4public_trades_market_response_item_type.py +5 -0
- whitebit/raw_client.py +637 -0
- whitebit/spot_trading/__init__.py +47 -0
- whitebit/spot_trading/client.py +4143 -0
- whitebit/spot_trading/raw_client.py +5628 -0
- whitebit/spot_trading/types/__init__.py +45 -0
- whitebit/spot_trading/types/cancel_all_orders_request_type_item.py +5 -0
- whitebit/spot_trading/types/get_executed_order_history_response_value_item.py +62 -0
- whitebit/spot_trading/types/get_executed_order_history_response_value_item_side.py +5 -0
- whitebit/spot_trading/types/get_kill_switch_status_response_item.py +44 -0
- whitebit/spot_trading/types/get_kill_switch_status_response_item_types_item.py +5 -0
- whitebit/spot_trading/types/get_order_deals_response.py +33 -0
- whitebit/spot_trading/types/get_order_deals_response_records_item.py +80 -0
- whitebit/spot_trading/types/get_order_history_response_value_item.py +131 -0
- whitebit/spot_trading/types/get_order_history_response_value_item_side.py +5 -0
- whitebit/spot_trading/types/limit_order_request_side.py +5 -0
- whitebit/spot_trading/types/limit_order_request_stp.py +5 -0
- whitebit/spot_trading/types/set_kill_switch_request_types_item.py +5 -0
- whitebit/spot_trading/types/set_kill_switch_response.py +44 -0
- whitebit/spot_trading/types/set_kill_switch_response_types_item.py +5 -0
- whitebit/spot_trading/types/stop_limit_order_request_side.py +5 -0
- whitebit/spot_trading/types/stop_limit_order_request_stp.py +5 -0
- whitebit/spot_trading/types/stop_market_order_request_side.py +5 -0
- whitebit/spot_trading/types/stop_market_order_request_stp.py +5 -0
- whitebit/spot_trading/types/trade_account_balance_response_value.py +27 -0
- whitebit/sub_account/__init__.py +25 -0
- whitebit/sub_account/client.py +892 -0
- whitebit/sub_account/raw_client.py +1399 -0
- whitebit/sub_account/types/__init__.py +23 -0
- whitebit/sub_account/types/create_sub_account_request_permissions.py +29 -0
- whitebit/sub_account/types/edit_sub_account_request_permissions.py +29 -0
- whitebit/sub_account/types/get_sub_account_balances_response_value_item.py +21 -0
- whitebit/sub_account/types/get_sub_account_transfer_history_request_direction.py +5 -0
- whitebit/sub_account/types/get_sub_account_transfer_history_response.py +22 -0
- whitebit/sub_account/types/list_sub_accounts_response.py +22 -0
- whitebit/sub_account/types/sub_account_transfer_request_direction.py +5 -0
- whitebit/sub_account/types/sub_account_transfer_response.py +26 -0
- whitebit/sub_account_api_keys/__init__.py +19 -0
- whitebit/sub_account_api_keys/client.py +754 -0
- whitebit/sub_account_api_keys/raw_client.py +1183 -0
- whitebit/sub_account_api_keys/types/__init__.py +17 -0
- whitebit/sub_account_api_keys/types/create_sub_account_api_key_ip_address_response.py +19 -0
- whitebit/sub_account_api_keys/types/delete_sub_account_api_key_ip_address_response.py +19 -0
- whitebit/sub_account_api_keys/types/edit_sub_account_api_key_request_urls_item.py +20 -0
- whitebit/sub_account_api_keys/types/list_sub_account_api_key_ip_addresses_response.py +19 -0
- whitebit/sub_account_api_keys/types/list_sub_account_api_keys_response.py +22 -0
- whitebit/transfer/__init__.py +15 -0
- whitebit/transfer/client.py +220 -0
- whitebit/transfer/raw_client.py +276 -0
- whitebit/transfer/types/__init__.py +13 -0
- whitebit/transfer/types/transfer_between_balances_request_from.py +5 -0
- whitebit/transfer/types/transfer_between_balances_request_method.py +7 -0
- whitebit/transfer/types/transfer_between_balances_request_to.py +5 -0
- whitebit/types/__init__.py +311 -0
- whitebit/types/asset.py +106 -0
- whitebit/types/asset_limits.py +33 -0
- whitebit/types/asset_limits_deposit_value.py +20 -0
- whitebit/types/asset_limits_withdraw_value.py +20 -0
- whitebit/types/asset_memo.py +24 -0
- whitebit/types/asset_networks.py +36 -0
- whitebit/types/asset_providers.py +24 -0
- whitebit/types/authorize_request.py +32 -0
- whitebit/types/authorize_response.py +29 -0
- whitebit/types/authorize_response_result.py +22 -0
- whitebit/types/bad_request_error_body.py +20 -0
- whitebit/types/balance_margin_request.py +32 -0
- whitebit/types/balance_margin_response.py +33 -0
- whitebit/types/balance_margin_response_result_value.py +37 -0
- whitebit/types/balance_margin_subscribe.py +32 -0
- whitebit/types/balance_margin_update.py +33 -0
- whitebit/types/balance_margin_update_params_item.py +48 -0
- whitebit/types/balance_spot_request.py +32 -0
- whitebit/types/balance_spot_response.py +33 -0
- whitebit/types/balance_spot_response_result_value.py +27 -0
- whitebit/types/balance_spot_subscribe.py +32 -0
- whitebit/types/balance_spot_update.py +33 -0
- whitebit/types/balance_spot_update_params_item_value.py +27 -0
- whitebit/types/base_request.py +22 -0
- whitebit/types/base_response.py +24 -0
- whitebit/types/book_ticker_subscribe.py +29 -0
- whitebit/types/book_ticker_update.py +26 -0
- whitebit/types/book_ticker_update_data.py +5 -0
- whitebit/types/borrows_events_subscribe.py +32 -0
- whitebit/types/borrows_events_update.py +34 -0
- whitebit/types/borrows_subscribe.py +32 -0
- whitebit/types/borrows_update.py +30 -0
- whitebit/types/borrows_update_params.py +25 -0
- whitebit/types/borrows_update_params_records_item.py +47 -0
- whitebit/types/bulk_limit_order_response.py +7 -0
- whitebit/types/bulk_limit_order_response_item.py +22 -0
- whitebit/types/bulk_order_item.py +42 -0
- whitebit/types/bulk_order_item_side.py +5 -0
- whitebit/types/candle.py +5 -0
- whitebit/types/candles_request.py +36 -0
- whitebit/types/candles_response.py +26 -0
- whitebit/types/candles_subscribe.py +34 -0
- whitebit/types/candles_update.py +26 -0
- whitebit/types/code_history.py +47 -0
- whitebit/types/code_info.py +47 -0
- whitebit/types/convert_confirm_response.py +33 -0
- whitebit/types/convert_estimate_request_direction.py +5 -0
- whitebit/types/convert_estimate_response.py +56 -0
- whitebit/types/convert_history_response.py +34 -0
- whitebit/types/convert_history_response_records_item.py +45 -0
- whitebit/types/convert_history_response_records_item_path_item.py +23 -0
- whitebit/types/credit_line.py +28 -0
- whitebit/types/deals_request.py +35 -0
- whitebit/types/deals_response.py +29 -0
- whitebit/types/deals_response_result.py +30 -0
- whitebit/types/deals_response_result_records_item.py +82 -0
- whitebit/types/deals_subscribe.py +32 -0
- whitebit/types/deals_update.py +43 -0
- whitebit/types/depth_level.py +5 -0
- whitebit/types/depth_request.py +35 -0
- whitebit/types/depth_response.py +22 -0
- whitebit/types/depth_subscribe.py +32 -0
- whitebit/types/depth_update.py +31 -0
- whitebit/types/depth_update_data.py +40 -0
- whitebit/types/error.py +21 -0
- whitebit/types/error_inner.py +21 -0
- whitebit/types/error_response.py +32 -0
- whitebit/types/error_v4.py +25 -0
- whitebit/types/executed_order_object.py +133 -0
- whitebit/types/executed_order_object_position_side.py +5 -0
- whitebit/types/executed_order_object_stp.py +5 -0
- whitebit/types/fee_details.py +23 -0
- whitebit/types/fee_details_flex.py +21 -0
- whitebit/types/fee_info.py +49 -0
- whitebit/types/fee_info_deposit.py +63 -0
- whitebit/types/fee_info_withdraw.py +63 -0
- whitebit/types/fixed_plan.py +79 -0
- whitebit/types/flex_investment.py +67 -0
- whitebit/types/flex_investment_history.py +64 -0
- whitebit/types/flex_plan.py +50 -0
- whitebit/types/futures_market.py +117 -0
- whitebit/types/interest_payment.py +48 -0
- whitebit/types/investment.py +64 -0
- whitebit/types/lastprice_request.py +29 -0
- whitebit/types/lastprice_response.py +25 -0
- whitebit/types/lastprice_subscribe.py +29 -0
- whitebit/types/lastprice_update.py +30 -0
- whitebit/types/margin_positions_events_subscribe.py +34 -0
- whitebit/types/margin_positions_events_update.py +34 -0
- whitebit/types/market_order_request.py +51 -0
- whitebit/types/market_order_request_side.py +5 -0
- whitebit/types/market_order_request_stp.py +5 -0
- whitebit/types/market_request.py +34 -0
- whitebit/types/market_response.py +22 -0
- whitebit/types/market_statistics.py +57 -0
- whitebit/types/market_subscribe.py +25 -0
- whitebit/types/market_today_request.py +29 -0
- whitebit/types/market_today_response.py +22 -0
- whitebit/types/market_today_statistics.py +47 -0
- whitebit/types/market_today_subscribe.py +25 -0
- whitebit/types/market_today_update.py +30 -0
- whitebit/types/market_update.py +30 -0
- whitebit/types/mining_reward.py +62 -0
- whitebit/types/not_found_error_body.py +20 -0
- whitebit/types/order_book.py +33 -0
- whitebit/types/order_object.py +118 -0
- whitebit/types/order_object_position_side.py +5 -0
- whitebit/types/order_object_stp.py +5 -0
- whitebit/types/order_response.py +123 -0
- whitebit/types/orderbook_response.py +37 -0
- whitebit/types/orders_executed_request.py +35 -0
- whitebit/types/orders_executed_response.py +29 -0
- whitebit/types/orders_executed_response_result.py +30 -0
- whitebit/types/orders_executed_subscribe.py +34 -0
- whitebit/types/orders_executed_update.py +33 -0
- whitebit/types/orders_pending_request.py +32 -0
- whitebit/types/orders_pending_response.py +29 -0
- whitebit/types/orders_pending_response_result.py +35 -0
- whitebit/types/orders_pending_subscribe.py +32 -0
- whitebit/types/orders_pending_update.py +32 -0
- whitebit/types/ping_request.py +25 -0
- whitebit/types/ping_response.py +21 -0
- whitebit/types/ping_response_result.py +5 -0
- whitebit/types/positions_subscribe.py +32 -0
- whitebit/types/positions_update.py +30 -0
- whitebit/types/positions_update_params.py +25 -0
- whitebit/types/positions_update_params_records_item.py +99 -0
- whitebit/types/positions_update_params_records_item_liq_stage.py +5 -0
- whitebit/types/positions_update_params_records_item_position_side.py +5 -0
- whitebit/types/provider_fee_details.py +28 -0
- whitebit/types/sub_account.py +63 -0
- whitebit/types/sub_account_api_key.py +84 -0
- whitebit/types/sub_account_api_key_access_endpoints_item.py +27 -0
- whitebit/types/sub_account_api_key_list.py +39 -0
- whitebit/types/sub_account_api_key_list_access_endpoints_item.py +20 -0
- whitebit/types/sub_account_kyc.py +37 -0
- whitebit/types/sub_account_permissions.py +37 -0
- whitebit/types/sub_account_transfer.py +53 -0
- whitebit/types/subscription_response.py +29 -0
- whitebit/types/subscription_response_result.py +22 -0
- whitebit/types/time_request.py +25 -0
- whitebit/types/time_response.py +23 -0
- whitebit/types/trade.py +48 -0
- whitebit/types/trade_type.py +5 -0
- whitebit/types/trades_request.py +35 -0
- whitebit/types/trades_response.py +22 -0
- whitebit/types/trades_subscribe.py +28 -0
- whitebit/types/trades_update.py +30 -0
- whitebit/types/transaction_history.py +108 -0
- whitebit/types/transaction_history_confirmations.py +31 -0
- whitebit/types/unprocessable_entity_error_body.py +20 -0
- whitebit/types/unsubscribe_request.py +32 -0
- whitebit/withdraw/__init__.py +11 -0
- whitebit/withdraw/client.py +496 -0
- whitebit/withdraw/raw_client.py +634 -0
- whitebit/withdraw/types/__init__.py +9 -0
- whitebit/withdraw/types/create_withdraw_request_beneficiary.py +74 -0
- whitebit/withdraw/types/create_withdraw_request_travel_rule.py +52 -0
- whitebit/withdraw/types/create_withdraw_request_travel_rule_type.py +5 -0
- whitebit_python_sdk-1.1.0.dist-info/METADATA +155 -0
- whitebit_python_sdk-1.1.0.dist-info/RECORD +451 -0
- whitebit_python_sdk-1.1.0.dist-info/WHEEL +5 -0
- whitebit_python_sdk-1.1.0.dist-info/licenses/LICENSE +20 -0
- whitebit_python_sdk-1.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
# isort: skip_file
|
|
4
|
+
|
|
5
|
+
from .asset import Asset
|
|
6
|
+
from .asset_limits import AssetLimits
|
|
7
|
+
from .asset_limits_deposit_value import AssetLimitsDepositValue
|
|
8
|
+
from .asset_limits_withdraw_value import AssetLimitsWithdrawValue
|
|
9
|
+
from .asset_memo import AssetMemo
|
|
10
|
+
from .asset_networks import AssetNetworks
|
|
11
|
+
from .asset_providers import AssetProviders
|
|
12
|
+
from .authorize_request import AuthorizeRequest
|
|
13
|
+
from .authorize_response import AuthorizeResponse
|
|
14
|
+
from .authorize_response_result import AuthorizeResponseResult
|
|
15
|
+
from .bad_request_error_body import BadRequestErrorBody
|
|
16
|
+
from .balance_margin_request import BalanceMarginRequest
|
|
17
|
+
from .balance_margin_response import BalanceMarginResponse
|
|
18
|
+
from .balance_margin_response_result_value import BalanceMarginResponseResultValue
|
|
19
|
+
from .balance_margin_subscribe import BalanceMarginSubscribe
|
|
20
|
+
from .balance_margin_update import BalanceMarginUpdate
|
|
21
|
+
from .balance_margin_update_params_item import BalanceMarginUpdateParamsItem
|
|
22
|
+
from .balance_spot_request import BalanceSpotRequest
|
|
23
|
+
from .balance_spot_response import BalanceSpotResponse
|
|
24
|
+
from .balance_spot_response_result_value import BalanceSpotResponseResultValue
|
|
25
|
+
from .balance_spot_subscribe import BalanceSpotSubscribe
|
|
26
|
+
from .balance_spot_update import BalanceSpotUpdate
|
|
27
|
+
from .balance_spot_update_params_item_value import BalanceSpotUpdateParamsItemValue
|
|
28
|
+
from .base_request import BaseRequest
|
|
29
|
+
from .base_response import BaseResponse
|
|
30
|
+
from .book_ticker_subscribe import BookTickerSubscribe
|
|
31
|
+
from .book_ticker_update import BookTickerUpdate
|
|
32
|
+
from .book_ticker_update_data import BookTickerUpdateData
|
|
33
|
+
from .borrows_events_subscribe import BorrowsEventsSubscribe
|
|
34
|
+
from .borrows_events_update import BorrowsEventsUpdate
|
|
35
|
+
from .borrows_subscribe import BorrowsSubscribe
|
|
36
|
+
from .borrows_update import BorrowsUpdate
|
|
37
|
+
from .borrows_update_params import BorrowsUpdateParams
|
|
38
|
+
from .borrows_update_params_records_item import BorrowsUpdateParamsRecordsItem
|
|
39
|
+
from .bulk_limit_order_response import BulkLimitOrderResponse
|
|
40
|
+
from .bulk_limit_order_response_item import BulkLimitOrderResponseItem
|
|
41
|
+
from .bulk_order_item import BulkOrderItem
|
|
42
|
+
from .bulk_order_item_side import BulkOrderItemSide
|
|
43
|
+
from .candle import Candle
|
|
44
|
+
from .candles_request import CandlesRequest
|
|
45
|
+
from .candles_response import CandlesResponse
|
|
46
|
+
from .candles_subscribe import CandlesSubscribe
|
|
47
|
+
from .candles_update import CandlesUpdate
|
|
48
|
+
from .code_history import CodeHistory
|
|
49
|
+
from .code_info import CodeInfo
|
|
50
|
+
from .convert_confirm_response import ConvertConfirmResponse
|
|
51
|
+
from .convert_estimate_request_direction import ConvertEstimateRequestDirection
|
|
52
|
+
from .convert_estimate_response import ConvertEstimateResponse
|
|
53
|
+
from .convert_history_response import ConvertHistoryResponse
|
|
54
|
+
from .convert_history_response_records_item import ConvertHistoryResponseRecordsItem
|
|
55
|
+
from .convert_history_response_records_item_path_item import ConvertHistoryResponseRecordsItemPathItem
|
|
56
|
+
from .credit_line import CreditLine
|
|
57
|
+
from .deals_request import DealsRequest
|
|
58
|
+
from .deals_response import DealsResponse
|
|
59
|
+
from .deals_response_result import DealsResponseResult
|
|
60
|
+
from .deals_response_result_records_item import DealsResponseResultRecordsItem
|
|
61
|
+
from .deals_subscribe import DealsSubscribe
|
|
62
|
+
from .deals_update import DealsUpdate
|
|
63
|
+
from .depth_level import DepthLevel
|
|
64
|
+
from .depth_request import DepthRequest
|
|
65
|
+
from .depth_response import DepthResponse
|
|
66
|
+
from .depth_subscribe import DepthSubscribe
|
|
67
|
+
from .depth_update import DepthUpdate
|
|
68
|
+
from .depth_update_data import DepthUpdateData
|
|
69
|
+
from .error import Error
|
|
70
|
+
from .error_inner import ErrorInner
|
|
71
|
+
from .error_response import ErrorResponse
|
|
72
|
+
from .error_v4 import ErrorV4
|
|
73
|
+
from .executed_order_object import ExecutedOrderObject
|
|
74
|
+
from .executed_order_object_position_side import ExecutedOrderObjectPositionSide
|
|
75
|
+
from .executed_order_object_stp import ExecutedOrderObjectStp
|
|
76
|
+
from .fee_details import FeeDetails
|
|
77
|
+
from .fee_details_flex import FeeDetailsFlex
|
|
78
|
+
from .fee_info import FeeInfo
|
|
79
|
+
from .fee_info_deposit import FeeInfoDeposit
|
|
80
|
+
from .fee_info_withdraw import FeeInfoWithdraw
|
|
81
|
+
from .fixed_plan import FixedPlan
|
|
82
|
+
from .flex_investment import FlexInvestment
|
|
83
|
+
from .flex_investment_history import FlexInvestmentHistory
|
|
84
|
+
from .flex_plan import FlexPlan
|
|
85
|
+
from .futures_market import FuturesMarket
|
|
86
|
+
from .interest_payment import InterestPayment
|
|
87
|
+
from .investment import Investment
|
|
88
|
+
from .lastprice_request import LastpriceRequest
|
|
89
|
+
from .lastprice_response import LastpriceResponse
|
|
90
|
+
from .lastprice_subscribe import LastpriceSubscribe
|
|
91
|
+
from .lastprice_update import LastpriceUpdate
|
|
92
|
+
from .margin_positions_events_subscribe import MarginPositionsEventsSubscribe
|
|
93
|
+
from .margin_positions_events_update import MarginPositionsEventsUpdate
|
|
94
|
+
from .market_order_request import MarketOrderRequest
|
|
95
|
+
from .market_order_request_side import MarketOrderRequestSide
|
|
96
|
+
from .market_order_request_stp import MarketOrderRequestStp
|
|
97
|
+
from .market_request import MarketRequest
|
|
98
|
+
from .market_response import MarketResponse
|
|
99
|
+
from .market_statistics import MarketStatistics
|
|
100
|
+
from .market_subscribe import MarketSubscribe
|
|
101
|
+
from .market_today_request import MarketTodayRequest
|
|
102
|
+
from .market_today_response import MarketTodayResponse
|
|
103
|
+
from .market_today_statistics import MarketTodayStatistics
|
|
104
|
+
from .market_today_subscribe import MarketTodaySubscribe
|
|
105
|
+
from .market_today_update import MarketTodayUpdate
|
|
106
|
+
from .market_update import MarketUpdate
|
|
107
|
+
from .mining_reward import MiningReward
|
|
108
|
+
from .not_found_error_body import NotFoundErrorBody
|
|
109
|
+
from .order_book import OrderBook
|
|
110
|
+
from .order_object import OrderObject
|
|
111
|
+
from .order_object_position_side import OrderObjectPositionSide
|
|
112
|
+
from .order_object_stp import OrderObjectStp
|
|
113
|
+
from .order_response import OrderResponse
|
|
114
|
+
from .orderbook_response import OrderbookResponse
|
|
115
|
+
from .orders_executed_request import OrdersExecutedRequest
|
|
116
|
+
from .orders_executed_response import OrdersExecutedResponse
|
|
117
|
+
from .orders_executed_response_result import OrdersExecutedResponseResult
|
|
118
|
+
from .orders_executed_subscribe import OrdersExecutedSubscribe
|
|
119
|
+
from .orders_executed_update import OrdersExecutedUpdate
|
|
120
|
+
from .orders_pending_request import OrdersPendingRequest
|
|
121
|
+
from .orders_pending_response import OrdersPendingResponse
|
|
122
|
+
from .orders_pending_response_result import OrdersPendingResponseResult
|
|
123
|
+
from .orders_pending_subscribe import OrdersPendingSubscribe
|
|
124
|
+
from .orders_pending_update import OrdersPendingUpdate
|
|
125
|
+
from .ping_request import PingRequest
|
|
126
|
+
from .ping_response import PingResponse
|
|
127
|
+
from .ping_response_result import PingResponseResult
|
|
128
|
+
from .positions_subscribe import PositionsSubscribe
|
|
129
|
+
from .positions_update import PositionsUpdate
|
|
130
|
+
from .positions_update_params import PositionsUpdateParams
|
|
131
|
+
from .positions_update_params_records_item import PositionsUpdateParamsRecordsItem
|
|
132
|
+
from .positions_update_params_records_item_liq_stage import PositionsUpdateParamsRecordsItemLiqStage
|
|
133
|
+
from .positions_update_params_records_item_position_side import PositionsUpdateParamsRecordsItemPositionSide
|
|
134
|
+
from .provider_fee_details import ProviderFeeDetails
|
|
135
|
+
from .sub_account import SubAccount
|
|
136
|
+
from .sub_account_api_key import SubAccountApiKey
|
|
137
|
+
from .sub_account_api_key_access_endpoints_item import SubAccountApiKeyAccessEndpointsItem
|
|
138
|
+
from .sub_account_api_key_list import SubAccountApiKeyList
|
|
139
|
+
from .sub_account_api_key_list_access_endpoints_item import SubAccountApiKeyListAccessEndpointsItem
|
|
140
|
+
from .sub_account_kyc import SubAccountKyc
|
|
141
|
+
from .sub_account_permissions import SubAccountPermissions
|
|
142
|
+
from .sub_account_transfer import SubAccountTransfer
|
|
143
|
+
from .subscription_response import SubscriptionResponse
|
|
144
|
+
from .subscription_response_result import SubscriptionResponseResult
|
|
145
|
+
from .time_request import TimeRequest
|
|
146
|
+
from .time_response import TimeResponse
|
|
147
|
+
from .trade import Trade
|
|
148
|
+
from .trade_type import TradeType
|
|
149
|
+
from .trades_request import TradesRequest
|
|
150
|
+
from .trades_response import TradesResponse
|
|
151
|
+
from .trades_subscribe import TradesSubscribe
|
|
152
|
+
from .trades_update import TradesUpdate
|
|
153
|
+
from .transaction_history import TransactionHistory
|
|
154
|
+
from .transaction_history_confirmations import TransactionHistoryConfirmations
|
|
155
|
+
from .unprocessable_entity_error_body import UnprocessableEntityErrorBody
|
|
156
|
+
from .unsubscribe_request import UnsubscribeRequest
|
|
157
|
+
|
|
158
|
+
__all__ = [
|
|
159
|
+
"Asset",
|
|
160
|
+
"AssetLimits",
|
|
161
|
+
"AssetLimitsDepositValue",
|
|
162
|
+
"AssetLimitsWithdrawValue",
|
|
163
|
+
"AssetMemo",
|
|
164
|
+
"AssetNetworks",
|
|
165
|
+
"AssetProviders",
|
|
166
|
+
"AuthorizeRequest",
|
|
167
|
+
"AuthorizeResponse",
|
|
168
|
+
"AuthorizeResponseResult",
|
|
169
|
+
"BadRequestErrorBody",
|
|
170
|
+
"BalanceMarginRequest",
|
|
171
|
+
"BalanceMarginResponse",
|
|
172
|
+
"BalanceMarginResponseResultValue",
|
|
173
|
+
"BalanceMarginSubscribe",
|
|
174
|
+
"BalanceMarginUpdate",
|
|
175
|
+
"BalanceMarginUpdateParamsItem",
|
|
176
|
+
"BalanceSpotRequest",
|
|
177
|
+
"BalanceSpotResponse",
|
|
178
|
+
"BalanceSpotResponseResultValue",
|
|
179
|
+
"BalanceSpotSubscribe",
|
|
180
|
+
"BalanceSpotUpdate",
|
|
181
|
+
"BalanceSpotUpdateParamsItemValue",
|
|
182
|
+
"BaseRequest",
|
|
183
|
+
"BaseResponse",
|
|
184
|
+
"BookTickerSubscribe",
|
|
185
|
+
"BookTickerUpdate",
|
|
186
|
+
"BookTickerUpdateData",
|
|
187
|
+
"BorrowsEventsSubscribe",
|
|
188
|
+
"BorrowsEventsUpdate",
|
|
189
|
+
"BorrowsSubscribe",
|
|
190
|
+
"BorrowsUpdate",
|
|
191
|
+
"BorrowsUpdateParams",
|
|
192
|
+
"BorrowsUpdateParamsRecordsItem",
|
|
193
|
+
"BulkLimitOrderResponse",
|
|
194
|
+
"BulkLimitOrderResponseItem",
|
|
195
|
+
"BulkOrderItem",
|
|
196
|
+
"BulkOrderItemSide",
|
|
197
|
+
"Candle",
|
|
198
|
+
"CandlesRequest",
|
|
199
|
+
"CandlesResponse",
|
|
200
|
+
"CandlesSubscribe",
|
|
201
|
+
"CandlesUpdate",
|
|
202
|
+
"CodeHistory",
|
|
203
|
+
"CodeInfo",
|
|
204
|
+
"ConvertConfirmResponse",
|
|
205
|
+
"ConvertEstimateRequestDirection",
|
|
206
|
+
"ConvertEstimateResponse",
|
|
207
|
+
"ConvertHistoryResponse",
|
|
208
|
+
"ConvertHistoryResponseRecordsItem",
|
|
209
|
+
"ConvertHistoryResponseRecordsItemPathItem",
|
|
210
|
+
"CreditLine",
|
|
211
|
+
"DealsRequest",
|
|
212
|
+
"DealsResponse",
|
|
213
|
+
"DealsResponseResult",
|
|
214
|
+
"DealsResponseResultRecordsItem",
|
|
215
|
+
"DealsSubscribe",
|
|
216
|
+
"DealsUpdate",
|
|
217
|
+
"DepthLevel",
|
|
218
|
+
"DepthRequest",
|
|
219
|
+
"DepthResponse",
|
|
220
|
+
"DepthSubscribe",
|
|
221
|
+
"DepthUpdate",
|
|
222
|
+
"DepthUpdateData",
|
|
223
|
+
"Error",
|
|
224
|
+
"ErrorInner",
|
|
225
|
+
"ErrorResponse",
|
|
226
|
+
"ErrorV4",
|
|
227
|
+
"ExecutedOrderObject",
|
|
228
|
+
"ExecutedOrderObjectPositionSide",
|
|
229
|
+
"ExecutedOrderObjectStp",
|
|
230
|
+
"FeeDetails",
|
|
231
|
+
"FeeDetailsFlex",
|
|
232
|
+
"FeeInfo",
|
|
233
|
+
"FeeInfoDeposit",
|
|
234
|
+
"FeeInfoWithdraw",
|
|
235
|
+
"FixedPlan",
|
|
236
|
+
"FlexInvestment",
|
|
237
|
+
"FlexInvestmentHistory",
|
|
238
|
+
"FlexPlan",
|
|
239
|
+
"FuturesMarket",
|
|
240
|
+
"InterestPayment",
|
|
241
|
+
"Investment",
|
|
242
|
+
"LastpriceRequest",
|
|
243
|
+
"LastpriceResponse",
|
|
244
|
+
"LastpriceSubscribe",
|
|
245
|
+
"LastpriceUpdate",
|
|
246
|
+
"MarginPositionsEventsSubscribe",
|
|
247
|
+
"MarginPositionsEventsUpdate",
|
|
248
|
+
"MarketOrderRequest",
|
|
249
|
+
"MarketOrderRequestSide",
|
|
250
|
+
"MarketOrderRequestStp",
|
|
251
|
+
"MarketRequest",
|
|
252
|
+
"MarketResponse",
|
|
253
|
+
"MarketStatistics",
|
|
254
|
+
"MarketSubscribe",
|
|
255
|
+
"MarketTodayRequest",
|
|
256
|
+
"MarketTodayResponse",
|
|
257
|
+
"MarketTodayStatistics",
|
|
258
|
+
"MarketTodaySubscribe",
|
|
259
|
+
"MarketTodayUpdate",
|
|
260
|
+
"MarketUpdate",
|
|
261
|
+
"MiningReward",
|
|
262
|
+
"NotFoundErrorBody",
|
|
263
|
+
"OrderBook",
|
|
264
|
+
"OrderObject",
|
|
265
|
+
"OrderObjectPositionSide",
|
|
266
|
+
"OrderObjectStp",
|
|
267
|
+
"OrderResponse",
|
|
268
|
+
"OrderbookResponse",
|
|
269
|
+
"OrdersExecutedRequest",
|
|
270
|
+
"OrdersExecutedResponse",
|
|
271
|
+
"OrdersExecutedResponseResult",
|
|
272
|
+
"OrdersExecutedSubscribe",
|
|
273
|
+
"OrdersExecutedUpdate",
|
|
274
|
+
"OrdersPendingRequest",
|
|
275
|
+
"OrdersPendingResponse",
|
|
276
|
+
"OrdersPendingResponseResult",
|
|
277
|
+
"OrdersPendingSubscribe",
|
|
278
|
+
"OrdersPendingUpdate",
|
|
279
|
+
"PingRequest",
|
|
280
|
+
"PingResponse",
|
|
281
|
+
"PingResponseResult",
|
|
282
|
+
"PositionsSubscribe",
|
|
283
|
+
"PositionsUpdate",
|
|
284
|
+
"PositionsUpdateParams",
|
|
285
|
+
"PositionsUpdateParamsRecordsItem",
|
|
286
|
+
"PositionsUpdateParamsRecordsItemLiqStage",
|
|
287
|
+
"PositionsUpdateParamsRecordsItemPositionSide",
|
|
288
|
+
"ProviderFeeDetails",
|
|
289
|
+
"SubAccount",
|
|
290
|
+
"SubAccountApiKey",
|
|
291
|
+
"SubAccountApiKeyAccessEndpointsItem",
|
|
292
|
+
"SubAccountApiKeyList",
|
|
293
|
+
"SubAccountApiKeyListAccessEndpointsItem",
|
|
294
|
+
"SubAccountKyc",
|
|
295
|
+
"SubAccountPermissions",
|
|
296
|
+
"SubAccountTransfer",
|
|
297
|
+
"SubscriptionResponse",
|
|
298
|
+
"SubscriptionResponseResult",
|
|
299
|
+
"TimeRequest",
|
|
300
|
+
"TimeResponse",
|
|
301
|
+
"Trade",
|
|
302
|
+
"TradeType",
|
|
303
|
+
"TradesRequest",
|
|
304
|
+
"TradesResponse",
|
|
305
|
+
"TradesSubscribe",
|
|
306
|
+
"TradesUpdate",
|
|
307
|
+
"TransactionHistory",
|
|
308
|
+
"TransactionHistoryConfirmations",
|
|
309
|
+
"UnprocessableEntityErrorBody",
|
|
310
|
+
"UnsubscribeRequest",
|
|
311
|
+
]
|
whitebit/types/asset.py
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .asset_limits import AssetLimits
|
|
8
|
+
from .asset_memo import AssetMemo
|
|
9
|
+
from .asset_networks import AssetNetworks
|
|
10
|
+
from .asset_providers import AssetProviders
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Asset(UniversalBaseModel):
|
|
14
|
+
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
15
|
+
"""
|
|
16
|
+
Full name of cryptocurrency
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
unified_cryptoasset_id: typing.Optional[int] = pydantic.Field(default=None)
|
|
20
|
+
"""
|
|
21
|
+
Unique ID of cryptocurrency assigned by Unified Cryptoasset ID, 0 if unknown
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
can_withdraw: typing.Optional[bool] = pydantic.Field(default=None)
|
|
25
|
+
"""
|
|
26
|
+
Indicates withdrawal status (enabled or disabled)
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
can_deposit: typing.Optional[bool] = pydantic.Field(default=None)
|
|
30
|
+
"""
|
|
31
|
+
Indicates deposit status (enabled or disabled)
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
min_withdraw: typing.Optional[str] = pydantic.Field(default=None)
|
|
35
|
+
"""
|
|
36
|
+
Minimum withdrawal amount for the asset
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
max_withdraw: typing.Optional[str] = pydantic.Field(default=None)
|
|
40
|
+
"""
|
|
41
|
+
Maximum withdrawal amount for the asset
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
maker_fee: typing.Optional[str] = pydantic.Field(default=None)
|
|
45
|
+
"""
|
|
46
|
+
Maker fee in percentage
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
taker_fee: typing.Optional[str] = pydantic.Field(default=None)
|
|
50
|
+
"""
|
|
51
|
+
Taker fee in percentage
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
min_deposit: typing.Optional[str] = pydantic.Field(default=None)
|
|
55
|
+
"""
|
|
56
|
+
Min deposit amount
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
max_deposit: typing.Optional[str] = pydantic.Field(default=None)
|
|
60
|
+
"""
|
|
61
|
+
Max deposit amount; omitted if no limit, 0 if unlimited
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
currency_precision: typing.Optional[int] = pydantic.Field(default=None)
|
|
65
|
+
"""
|
|
66
|
+
Max number of digits to the right of the decimal point
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
is_memo: typing.Optional[bool] = pydantic.Field(default=None)
|
|
70
|
+
"""
|
|
71
|
+
Indicates whether the asset requires a memo address
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
memo: typing.Optional[AssetMemo] = pydantic.Field(default=None)
|
|
75
|
+
"""
|
|
76
|
+
Indicates whether the asset requires a memo for deposits and withdrawals
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
networks: typing.Optional[AssetNetworks] = pydantic.Field(default=None)
|
|
80
|
+
"""
|
|
81
|
+
Currency networks
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
limits: typing.Optional[AssetLimits] = pydantic.Field(default=None)
|
|
85
|
+
"""
|
|
86
|
+
Currency limits by each network
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
confirmations: typing.Optional[typing.Dict[str, int]] = pydantic.Field(default=None)
|
|
90
|
+
"""
|
|
91
|
+
Deposit confirmations count mapped by network
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
providers: typing.Optional[AssetProviders] = pydantic.Field(default=None)
|
|
95
|
+
"""
|
|
96
|
+
Fiat currency providers
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
if IS_PYDANTIC_V2:
|
|
100
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
101
|
+
else:
|
|
102
|
+
|
|
103
|
+
class Config:
|
|
104
|
+
frozen = True
|
|
105
|
+
smart_union = True
|
|
106
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .asset_limits_deposit_value import AssetLimitsDepositValue
|
|
8
|
+
from .asset_limits_withdraw_value import AssetLimitsWithdrawValue
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AssetLimits(UniversalBaseModel):
|
|
12
|
+
"""
|
|
13
|
+
Currency limits by each network
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
deposit: typing.Optional[typing.Dict[str, AssetLimitsDepositValue]] = pydantic.Field(default=None)
|
|
17
|
+
"""
|
|
18
|
+
Deposits limits
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
withdraw: typing.Optional[typing.Dict[str, AssetLimitsWithdrawValue]] = pydantic.Field(default=None)
|
|
22
|
+
"""
|
|
23
|
+
Withdraws limits
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
if IS_PYDANTIC_V2:
|
|
27
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
28
|
+
else:
|
|
29
|
+
|
|
30
|
+
class Config:
|
|
31
|
+
frozen = True
|
|
32
|
+
smart_union = True
|
|
33
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AssetLimitsDepositValue(UniversalBaseModel):
|
|
10
|
+
min: typing.Optional[str] = None
|
|
11
|
+
max: typing.Optional[str] = None
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
class Config:
|
|
18
|
+
frozen = True
|
|
19
|
+
smart_union = True
|
|
20
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AssetLimitsWithdrawValue(UniversalBaseModel):
|
|
10
|
+
min: typing.Optional[str] = None
|
|
11
|
+
max: typing.Optional[str] = None
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
class Config:
|
|
18
|
+
frozen = True
|
|
19
|
+
smart_union = True
|
|
20
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AssetMemo(UniversalBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Indicates whether the asset requires a memo for deposits and withdrawals
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
deposit: typing.Optional[bool] = None
|
|
15
|
+
withdraw: typing.Optional[bool] = None
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AssetNetworks(UniversalBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Currency networks
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
deposits: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
|
15
|
+
"""
|
|
16
|
+
Networks available for depositing
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
withdraws: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
|
20
|
+
"""
|
|
21
|
+
Networks available for withdrawing
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
default: typing.Optional[str] = pydantic.Field(default=None)
|
|
25
|
+
"""
|
|
26
|
+
Default network for depositing / withdrawing if available
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
if IS_PYDANTIC_V2:
|
|
30
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
31
|
+
else:
|
|
32
|
+
|
|
33
|
+
class Config:
|
|
34
|
+
frozen = True
|
|
35
|
+
smart_union = True
|
|
36
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AssetProviders(UniversalBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Fiat currency providers
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
deposits: typing.Optional[typing.List[str]] = None
|
|
15
|
+
withdraws: typing.Optional[typing.List[str]] = None
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AuthorizeRequest(UniversalBaseModel):
|
|
10
|
+
id: int = pydantic.Field()
|
|
11
|
+
"""
|
|
12
|
+
Unique request identifier
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
method: typing.Literal["authorize"] = pydantic.Field(default="authorize")
|
|
16
|
+
"""
|
|
17
|
+
Method name. Fixed value: `authorize`.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
params: typing.List[typing.Optional[typing.Any]] = pydantic.Field()
|
|
21
|
+
"""
|
|
22
|
+
Array with WebSocket token and constant "public" string
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
if IS_PYDANTIC_V2:
|
|
26
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
27
|
+
else:
|
|
28
|
+
|
|
29
|
+
class Config:
|
|
30
|
+
frozen = True
|
|
31
|
+
smart_union = True
|
|
32
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .authorize_response_result import AuthorizeResponseResult
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AuthorizeResponse(UniversalBaseModel):
|
|
11
|
+
id: int = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
Request identifier matching the request
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
result: AuthorizeResponseResult
|
|
17
|
+
error: typing.Optional[typing.Optional[typing.Any]] = pydantic.Field(default=None)
|
|
18
|
+
"""
|
|
19
|
+
Error object (null on success)
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
if IS_PYDANTIC_V2:
|
|
23
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
24
|
+
else:
|
|
25
|
+
|
|
26
|
+
class Config:
|
|
27
|
+
frozen = True
|
|
28
|
+
smart_union = True
|
|
29
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AuthorizeResponseResult(UniversalBaseModel):
|
|
10
|
+
status: typing.Literal["success"] = pydantic.Field(default="success")
|
|
11
|
+
"""
|
|
12
|
+
Fixed value: `success`.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class BadRequestErrorBody(UniversalBaseModel):
|
|
10
|
+
code: typing.Optional[int] = None
|
|
11
|
+
message: typing.Optional[str] = None
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
class Config:
|
|
18
|
+
frozen = True
|
|
19
|
+
smart_union = True
|
|
20
|
+
extra = pydantic.Extra.allow
|