kalshi-python-sync 3.32.0__py3-none-any.whl → 3.34.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.
- kalshi_python_sync/__init__.py +4 -2
- kalshi_python_sync/api/account_api.py +1 -1
- kalshi_python_sync/api/api_keys_api.py +1 -1
- kalshi_python_sync/api/communications_api.py +1 -1
- kalshi_python_sync/api/events_api.py +1 -1
- kalshi_python_sync/api/exchange_api.py +1 -1
- kalshi_python_sync/api/fcm_api.py +292 -1
- kalshi_python_sync/api/historical_api.py +1 -1
- kalshi_python_sync/api/incentive_programs_api.py +1 -1
- kalshi_python_sync/api/live_data_api.py +1 -1
- kalshi_python_sync/api/market_api.py +1 -1
- kalshi_python_sync/api/milestone_api.py +1 -1
- kalshi_python_sync/api/multivariate_api.py +1 -1
- kalshi_python_sync/api/order_groups_api.py +1 -1
- kalshi_python_sync/api/orders_api.py +1 -1
- kalshi_python_sync/api/portfolio_api.py +1 -1
- kalshi_python_sync/api/search_api.py +1 -1
- kalshi_python_sync/api/structured_targets_api.py +1 -1
- kalshi_python_sync/api_client.py +2 -2
- kalshi_python_sync/configuration.py +3 -3
- kalshi_python_sync/exceptions.py +1 -1
- kalshi_python_sync/models/__init__.py +3 -1
- kalshi_python_sync/models/accept_block_trade_proposal_request.py +1 -1
- kalshi_python_sync/models/accept_quote_request.py +1 -1
- kalshi_python_sync/models/account_api_usage_level_volume_goal.py +1 -1
- kalshi_python_sync/models/account_api_usage_level_volume_progress.py +1 -1
- kalshi_python_sync/models/amend_order_request.py +1 -1
- kalshi_python_sync/models/amend_order_response.py +1 -1
- kalshi_python_sync/models/amend_order_v2_request.py +1 -1
- kalshi_python_sync/models/amend_order_v2_response.py +1 -1
- kalshi_python_sync/models/api_key.py +1 -1
- kalshi_python_sync/models/api_key_scope.py +1 -1
- kalshi_python_sync/models/api_key_type.py +1 -1
- kalshi_python_sync/models/api_usage_level_grant.py +1 -1
- kalshi_python_sync/models/apply_subaccount_transfer_request.py +1 -1
- kalshi_python_sync/models/associated_event.py +1 -1
- kalshi_python_sync/models/batch_cancel_orders_individual_response.py +1 -1
- kalshi_python_sync/models/batch_cancel_orders_request.py +1 -1
- kalshi_python_sync/models/batch_cancel_orders_request_order.py +1 -1
- kalshi_python_sync/models/batch_cancel_orders_response.py +1 -1
- kalshi_python_sync/models/batch_cancel_orders_v2_request.py +1 -1
- kalshi_python_sync/models/batch_cancel_orders_v2_request_orders_inner.py +1 -1
- kalshi_python_sync/models/batch_cancel_orders_v2_response.py +1 -1
- kalshi_python_sync/models/batch_cancel_orders_v2_response_orders_inner.py +1 -1
- kalshi_python_sync/models/batch_create_orders_individual_response.py +1 -1
- kalshi_python_sync/models/batch_create_orders_request.py +1 -1
- kalshi_python_sync/models/batch_create_orders_response.py +1 -1
- kalshi_python_sync/models/batch_create_orders_v2_request.py +1 -1
- kalshi_python_sync/models/batch_create_orders_v2_response.py +1 -1
- kalshi_python_sync/models/batch_create_orders_v2_response_orders_inner.py +1 -1
- kalshi_python_sync/models/batch_get_market_candlesticks_response.py +1 -1
- kalshi_python_sync/models/bid_ask_distribution.py +1 -1
- kalshi_python_sync/models/bid_ask_distribution_historical.py +1 -1
- kalshi_python_sync/models/block_trade_proposal.py +1 -1
- kalshi_python_sync/models/book_side.py +1 -1
- kalshi_python_sync/models/bucket_limit.py +1 -1
- kalshi_python_sync/models/cancel_order_v2_response.py +1 -1
- kalshi_python_sync/models/create_api_key_request.py +1 -1
- kalshi_python_sync/models/create_api_key_response.py +1 -1
- kalshi_python_sync/models/create_fcm_position_transfer_request.py +96 -0
- kalshi_python_sync/models/create_fcm_position_transfer_response.py +87 -0
- kalshi_python_sync/models/create_fcm_subtrader_request.py +1 -1
- kalshi_python_sync/models/create_fcm_subtrader_response.py +1 -1
- kalshi_python_sync/models/create_market_in_multivariate_event_collection_request.py +1 -1
- kalshi_python_sync/models/create_market_in_multivariate_event_collection_response.py +1 -1
- kalshi_python_sync/models/create_order_group_request.py +1 -1
- kalshi_python_sync/models/create_order_group_response.py +1 -1
- kalshi_python_sync/models/create_order_request.py +1 -1
- kalshi_python_sync/models/create_order_response.py +1 -1
- kalshi_python_sync/models/create_order_v2_request.py +1 -1
- kalshi_python_sync/models/create_order_v2_response.py +1 -1
- kalshi_python_sync/models/create_quote_request.py +1 -1
- kalshi_python_sync/models/create_quote_response.py +1 -1
- kalshi_python_sync/models/create_rfq_request.py +1 -1
- kalshi_python_sync/models/create_rfq_response.py +1 -1
- kalshi_python_sync/models/create_subaccount_request.py +1 -1
- kalshi_python_sync/models/create_subaccount_response.py +1 -1
- kalshi_python_sync/models/daily_schedule.py +1 -1
- kalshi_python_sync/models/decrease_order_v2_request.py +1 -1
- kalshi_python_sync/models/decrease_order_v2_response.py +1 -1
- kalshi_python_sync/models/deposit.py +1 -1
- kalshi_python_sync/models/endpoint_token_cost.py +1 -1
- kalshi_python_sync/models/error_response.py +1 -1
- kalshi_python_sync/models/event_data.py +1 -1
- kalshi_python_sync/models/event_fee_change.py +1 -1
- kalshi_python_sync/models/event_live_data.py +1 -1
- kalshi_python_sync/models/event_position.py +1 -1
- kalshi_python_sync/models/exchange_index_status.py +1 -1
- kalshi_python_sync/models/exchange_instance.py +1 -1
- kalshi_python_sync/models/exchange_status.py +1 -1
- kalshi_python_sync/models/fcm_fill.py +1 -1
- kalshi_python_sync/models/fcm_subtrader.py +1 -1
- kalshi_python_sync/models/fee_type.py +1 -1
- kalshi_python_sync/models/fill.py +1 -1
- kalshi_python_sync/models/forecast_percentiles_point.py +1 -1
- kalshi_python_sync/models/generate_api_key_request.py +1 -1
- kalshi_python_sync/models/generate_api_key_response.py +1 -1
- kalshi_python_sync/models/get_account_api_limits_response.py +1 -1
- kalshi_python_sync/models/get_account_api_usage_level_volume_progress_response.py +1 -1
- kalshi_python_sync/models/get_account_endpoint_costs_response.py +1 -1
- kalshi_python_sync/models/get_api_keys_response.py +1 -1
- kalshi_python_sync/models/get_balance_response.py +1 -1
- kalshi_python_sync/models/get_block_trade_proposals_response.py +1 -1
- kalshi_python_sync/models/get_communications_id_response.py +1 -1
- kalshi_python_sync/models/get_deposits_response.py +1 -1
- kalshi_python_sync/models/get_event_candlesticks_response.py +1 -1
- kalshi_python_sync/models/get_event_fee_changes_response.py +1 -1
- kalshi_python_sync/models/get_event_forecast_percentiles_history_response.py +1 -1
- kalshi_python_sync/models/get_event_live_data_response.py +1 -1
- kalshi_python_sync/models/get_event_metadata_response.py +1 -1
- kalshi_python_sync/models/get_event_response.py +1 -1
- kalshi_python_sync/models/get_events_response.py +1 -1
- kalshi_python_sync/models/get_exchange_schedule_response.py +1 -1
- kalshi_python_sync/models/get_fcm_event_contract_daily_cap_response.py +1 -1
- kalshi_python_sync/models/get_fcm_fills_response.py +1 -1
- kalshi_python_sync/models/get_fcm_subtrader_blocked_categories_response.py +1 -1
- kalshi_python_sync/models/get_fills_response.py +1 -1
- kalshi_python_sync/models/get_filters_by_sports_response.py +1 -1
- kalshi_python_sync/models/get_game_stats_response.py +1 -1
- kalshi_python_sync/models/get_historical_cutoff_response.py +1 -1
- kalshi_python_sync/models/get_incentive_programs_response.py +1 -1
- kalshi_python_sync/models/get_intra_exchange_instance_transfer_response.py +1 -1
- kalshi_python_sync/models/get_intra_exchange_instance_transfers_response.py +1 -1
- kalshi_python_sync/models/get_live_data_response.py +1 -1
- kalshi_python_sync/models/get_live_datas_response.py +1 -1
- kalshi_python_sync/models/get_market_candlesticks_historical_response.py +1 -1
- kalshi_python_sync/models/get_market_candlesticks_response.py +1 -1
- kalshi_python_sync/models/get_market_orderbook_response.py +1 -1
- kalshi_python_sync/models/get_market_orderbooks_response.py +1 -1
- kalshi_python_sync/models/get_market_response.py +1 -1
- kalshi_python_sync/models/get_markets_response.py +1 -1
- kalshi_python_sync/models/get_milestone_response.py +1 -1
- kalshi_python_sync/models/get_milestones_response.py +1 -1
- kalshi_python_sync/models/get_multivariate_event_collection_response.py +1 -1
- kalshi_python_sync/models/get_multivariate_event_collections_response.py +1 -1
- kalshi_python_sync/models/get_multivariate_events_response.py +1 -1
- kalshi_python_sync/models/get_order_group_response.py +1 -1
- kalshi_python_sync/models/get_order_groups_response.py +1 -1
- kalshi_python_sync/models/get_order_queue_position_response.py +1 -1
- kalshi_python_sync/models/get_order_queue_positions_response.py +1 -1
- kalshi_python_sync/models/get_order_response.py +1 -1
- kalshi_python_sync/models/get_orders_response.py +1 -1
- kalshi_python_sync/models/get_portfolio_resting_order_total_value_response.py +1 -1
- kalshi_python_sync/models/get_positions_response.py +1 -1
- kalshi_python_sync/models/get_quote_response.py +1 -1
- kalshi_python_sync/models/get_quotes_response.py +1 -1
- kalshi_python_sync/models/get_rfq_response.py +1 -1
- kalshi_python_sync/models/get_rfqs_response.py +1 -1
- kalshi_python_sync/models/get_series_fee_changes_response.py +1 -1
- kalshi_python_sync/models/get_series_list_response.py +1 -1
- kalshi_python_sync/models/get_series_response.py +1 -1
- kalshi_python_sync/models/get_settlements_response.py +1 -1
- kalshi_python_sync/models/get_structured_target_response.py +1 -1
- kalshi_python_sync/models/get_structured_targets_response.py +1 -1
- kalshi_python_sync/models/get_subaccount_balances_response.py +1 -1
- kalshi_python_sync/models/get_subaccount_netting_response.py +1 -1
- kalshi_python_sync/models/get_subaccount_transfers_response.py +1 -1
- kalshi_python_sync/models/get_tags_for_series_categories_response.py +1 -1
- kalshi_python_sync/models/get_target_balance_allocation_response.py +1 -1
- kalshi_python_sync/models/get_trades_response.py +1 -1
- kalshi_python_sync/models/get_user_data_timestamp_response.py +1 -1
- kalshi_python_sync/models/get_weather_index_calibrations_response.py +1 -1
- kalshi_python_sync/models/get_weather_index_response.py +1 -1
- kalshi_python_sync/models/get_withdrawals_response.py +1 -1
- kalshi_python_sync/models/incentive_program.py +1 -1
- kalshi_python_sync/models/indexed_balance.py +1 -1
- kalshi_python_sync/models/intra_exchange_instance_transfer.py +1 -1
- kalshi_python_sync/models/intra_exchange_instance_transfer_request.py +5 -2
- kalshi_python_sync/models/intra_exchange_instance_transfer_response.py +1 -1
- kalshi_python_sync/models/intra_exchange_instance_transfer_status.py +1 -1
- kalshi_python_sync/models/list_fcm_subtraders_response.py +1 -1
- kalshi_python_sync/models/live_data.py +1 -1
- kalshi_python_sync/models/maintenance_window.py +1 -1
- kalshi_python_sync/models/market.py +1 -1
- kalshi_python_sync/models/market_candlestick.py +1 -1
- kalshi_python_sync/models/market_candlestick_historical.py +1 -1
- kalshi_python_sync/models/market_candlesticks_response.py +1 -1
- kalshi_python_sync/models/market_metadata.py +1 -1
- kalshi_python_sync/models/market_orderbook_fp.py +1 -1
- kalshi_python_sync/models/market_position.py +1 -1
- kalshi_python_sync/models/milestone.py +1 -1
- kalshi_python_sync/models/multivariate_event_collection.py +1 -1
- kalshi_python_sync/models/mve_selected_leg.py +1 -1
- kalshi_python_sync/models/order.py +1 -1
- kalshi_python_sync/models/order_group.py +1 -1
- kalshi_python_sync/models/order_queue_position.py +1 -1
- kalshi_python_sync/models/order_status.py +1 -1
- kalshi_python_sync/models/orderbook_count_fp.py +1 -1
- kalshi_python_sync/models/outcome_side.py +1 -1
- kalshi_python_sync/models/percentile_point.py +1 -1
- kalshi_python_sync/models/play_by_play.py +1 -1
- kalshi_python_sync/models/play_by_play_periods_inner.py +1 -1
- kalshi_python_sync/models/price_distribution.py +1 -1
- kalshi_python_sync/models/price_distribution_historical.py +1 -1
- kalshi_python_sync/models/price_range.py +1 -1
- kalshi_python_sync/models/propose_block_trade_request.py +1 -1
- kalshi_python_sync/models/propose_block_trade_response.py +1 -1
- kalshi_python_sync/models/quote.py +1 -1
- kalshi_python_sync/models/resting_margin_reservation.py +1 -1
- kalshi_python_sync/models/rfq.py +1 -1
- kalshi_python_sync/models/schedule.py +1 -1
- kalshi_python_sync/models/scope_list.py +1 -1
- kalshi_python_sync/models/self_trade_prevention_type.py +1 -1
- kalshi_python_sync/models/series.py +1 -1
- kalshi_python_sync/models/series_fee_change.py +1 -1
- kalshi_python_sync/models/set_target_balance_allocation_request.py +1 -1
- kalshi_python_sync/models/settlement.py +1 -1
- kalshi_python_sync/models/settlement_source.py +1 -1
- kalshi_python_sync/models/sport_filter_details.py +1 -1
- kalshi_python_sync/models/structured_target.py +1 -1
- kalshi_python_sync/models/subaccount_balance.py +1 -1
- kalshi_python_sync/models/subaccount_netting_config.py +1 -1
- kalshi_python_sync/models/subaccount_transfer.py +1 -1
- kalshi_python_sync/models/target_balance_allocation.py +1 -1
- kalshi_python_sync/models/target_balance_allocation_input.py +1 -1
- kalshi_python_sync/models/ticker_pair.py +1 -1
- kalshi_python_sync/models/trade.py +1 -1
- kalshi_python_sync/models/update_fcm_event_contract_daily_cap_request.py +1 -1
- kalshi_python_sync/models/update_fcm_subtrader_blocked_categories_request.py +1 -1
- kalshi_python_sync/models/update_fcm_subtrader_blocked_categories_response.py +1 -1
- kalshi_python_sync/models/update_order_group_limit_request.py +1 -1
- kalshi_python_sync/models/update_subaccount_netting_request.py +1 -1
- kalshi_python_sync/models/user_filter.py +1 -1
- kalshi_python_sync/models/weather_index_calibration.py +1 -1
- kalshi_python_sync/models/weather_index_calibration_station.py +1 -1
- kalshi_python_sync/models/weather_index_point.py +1 -1
- kalshi_python_sync/models/weather_index_station_reading.py +1 -1
- kalshi_python_sync/models/weekly_schedule.py +1 -1
- kalshi_python_sync/models/withdrawal.py +1 -1
- kalshi_python_sync/rest.py +1 -1
- {kalshi_python_sync-3.32.0.dist-info → kalshi_python_sync-3.34.0.dist-info}/METADATA +3 -3
- kalshi_python_sync-3.34.0.dist-info/RECORD +238 -0
- kalshi_python_sync-3.32.0.dist-info/RECORD +0 -236
- {kalshi_python_sync-3.32.0.dist-info → kalshi_python_sync-3.34.0.dist-info}/WHEEL +0 -0
- {kalshi_python_sync-3.32.0.dist-info → kalshi_python_sync-3.34.0.dist-info}/top_level.txt +0 -0
kalshi_python_sync/__init__.py
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
9
9
|
|
|
10
|
-
The version of the OpenAPI document: 3.
|
|
10
|
+
The version of the OpenAPI document: 3.34.0
|
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
12
|
|
|
13
13
|
Do not edit the class manually.
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
|
-
__version__ = "3.
|
|
16
|
+
__version__ = "3.34.0"
|
|
17
17
|
|
|
18
18
|
# import apis into sdk package
|
|
19
19
|
from kalshi_python_sync.api.account_api import AccountApi
|
|
@@ -98,6 +98,8 @@ from kalshi_python_sync.models.bucket_limit import BucketLimit
|
|
|
98
98
|
from kalshi_python_sync.models.cancel_order_v2_response import CancelOrderV2Response
|
|
99
99
|
from kalshi_python_sync.models.create_api_key_request import CreateApiKeyRequest
|
|
100
100
|
from kalshi_python_sync.models.create_api_key_response import CreateApiKeyResponse
|
|
101
|
+
from kalshi_python_sync.models.create_fcm_position_transfer_request import CreateFCMPositionTransferRequest
|
|
102
|
+
from kalshi_python_sync.models.create_fcm_position_transfer_response import CreateFCMPositionTransferResponse
|
|
101
103
|
from kalshi_python_sync.models.create_fcm_subtrader_request import CreateFCMSubtraderRequest
|
|
102
104
|
from kalshi_python_sync.models.create_fcm_subtrader_response import CreateFCMSubtraderResponse
|
|
103
105
|
from kalshi_python_sync.models.create_market_in_multivariate_event_collection_request import CreateMarketInMultivariateEventCollectionRequest
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -18,6 +18,8 @@ from typing_extensions import Annotated
|
|
|
18
18
|
from pydantic import Field, StrictInt, StrictStr, field_validator
|
|
19
19
|
from typing import Any, Dict, Optional
|
|
20
20
|
from typing_extensions import Annotated
|
|
21
|
+
from kalshi_python_sync.models.create_fcm_position_transfer_request import CreateFCMPositionTransferRequest
|
|
22
|
+
from kalshi_python_sync.models.create_fcm_position_transfer_response import CreateFCMPositionTransferResponse
|
|
21
23
|
from kalshi_python_sync.models.create_fcm_subtrader_request import CreateFCMSubtraderRequest
|
|
22
24
|
from kalshi_python_sync.models.create_fcm_subtrader_response import CreateFCMSubtraderResponse
|
|
23
25
|
from kalshi_python_sync.models.get_fcm_event_contract_daily_cap_response import GetFCMEventContractDailyCapResponse
|
|
@@ -48,6 +50,295 @@ class FcmApi:
|
|
|
48
50
|
self.api_client = api_client
|
|
49
51
|
|
|
50
52
|
|
|
53
|
+
@validate_call
|
|
54
|
+
def create_fcm_position_transfer(
|
|
55
|
+
self,
|
|
56
|
+
# Request body parameters as keyword arguments
|
|
57
|
+
**kwargs: Any,
|
|
58
|
+
) -> CreateFCMPositionTransferResponse:
|
|
59
|
+
"""Create FCM Position Transfer
|
|
60
|
+
|
|
61
|
+
Endpoint for FCM members to move a position in one market from one of their subtraders into a subtrader under their FCM's error account. **This endpoint must be enabled for your FCM by Kalshi.** Kalshi enables it by configuring the error account that receives transferred positions and gives you that account's user id, which prefixes `target_subtrader_id`. Contact Kalshi to enable it; until then, requests return 400. - The destination is always your FCM's error account. `target_subtrader_id` picks the subtrader under it, which is created on first use. - Each request moves one market for one source subtrader. To move many positions, send one request per subtrader and market. - The transfer is booked like a trade at `price_centicents`, which is always the YES price, even when moving NO. No fee is charged and no fill is created. For YES, the error account pays the price per contract; for NO, it pays $1 minus the price per contract. The FCM receives the same amount. Use 0 for YES or 10000 for NO to move no cash. These amounts assume the source holds the side being moved and the target subtrader holds no opposite position in that market; otherwise the positions net like a trade and the balance changes differ. - The source's current position is not checked. A request for more than the source holds, or with the opposite sign, flips or grows the source's position. - Requests are not idempotent. After a timeout or 5xx, check the position before retrying. - The market must be open, neither account may be blocked, and the error account must have enough available balance on the market's exchange index to pay for the transfer. Otherwise the request returns 409. **Example: moving YES.** A customer subtrader holds 10 YES contracts. Send `position_centicount` 1000 and `price_centicents` 4500 (YES at 45 cents): - The customer subtrader goes from 10 YES to 0, and the error account subtrader from 0 to 10 YES. - The error account pays 10 x $0.45 = $4.50 and the FCM receives $4.50. - Sending `price_centicents` 0 instead moves the position with no cash. **Example: moving NO.** A customer subtrader holds 5 NO contracts. Send `position_centicount` -500 and `price_centicents` 7000 (YES at 70 cents, so NO at 30 cents): - The customer subtrader goes from 5 NO to 0, and the error account subtrader from 0 to 5 NO. - The error account pays 5 x $0.30 = $1.50 and the FCM receives $1.50. - Sending `price_centicents` 10000 instead moves the position with no cash. Sending 0 makes the error account pay the full $1 per contract ($5.00).
|
|
62
|
+
|
|
63
|
+
:param create_fcm_position_transfer_request: (required)
|
|
64
|
+
:type create_fcm_position_transfer_request: CreateFCMPositionTransferRequest
|
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
66
|
+
number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
71
|
+
request; this effectively ignores the
|
|
72
|
+
authentication in the spec for a single request.
|
|
73
|
+
:type _request_auth: dict, optional
|
|
74
|
+
:param _content_type: force content-type for the request.
|
|
75
|
+
:type _content_type: str, Optional
|
|
76
|
+
:param _headers: set to override the headers for a single
|
|
77
|
+
request; this effectively ignores the headers
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _headers: dict, optional
|
|
80
|
+
:param _host_index: set to override the host_index for a single
|
|
81
|
+
request; this effectively ignores the host_index
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _host_index: int, optional
|
|
84
|
+
:return: Returns the result object.
|
|
85
|
+
""" # noqa: E501
|
|
86
|
+
|
|
87
|
+
# Create request object from kwargs
|
|
88
|
+
create_fcm_position_transfer_request = CreateFCMPositionTransferRequest(**kwargs) if kwargs else None
|
|
89
|
+
|
|
90
|
+
_param = self._create_fcm_position_transfer_serialize(
|
|
91
|
+
create_fcm_position_transfer_request=create_fcm_position_transfer_request,
|
|
92
|
+
_request_auth=kwargs.get('_request_auth'),
|
|
93
|
+
_content_type=kwargs.get('_content_type'),
|
|
94
|
+
_headers=kwargs.get('_headers'),
|
|
95
|
+
_host_index=kwargs.get('_host_index', 0)
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
99
|
+
'201': "CreateFCMPositionTransferResponse",
|
|
100
|
+
'400': "ErrorResponse",
|
|
101
|
+
'401': "ErrorResponse",
|
|
102
|
+
'403': "ErrorResponse",
|
|
103
|
+
'404': "ErrorResponse",
|
|
104
|
+
'409': "ErrorResponse",
|
|
105
|
+
'429': "ErrorResponse",
|
|
106
|
+
'500': "ErrorResponse",
|
|
107
|
+
}
|
|
108
|
+
response_data = self.api_client.call_api(
|
|
109
|
+
*_param,
|
|
110
|
+
_request_timeout=kwargs.get('_request_timeout'),
|
|
111
|
+
)
|
|
112
|
+
response_data.read()
|
|
113
|
+
return self.api_client.response_deserialize(
|
|
114
|
+
response_data=response_data,
|
|
115
|
+
response_types_map=_response_types_map,
|
|
116
|
+
).data
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@validate_call
|
|
120
|
+
def create_fcm_position_transfer_with_http_info(
|
|
121
|
+
self,
|
|
122
|
+
create_fcm_position_transfer_request: CreateFCMPositionTransferRequest,
|
|
123
|
+
_request_timeout: Union[
|
|
124
|
+
None,
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
126
|
+
Tuple[
|
|
127
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
128
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
129
|
+
]
|
|
130
|
+
] = None,
|
|
131
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
132
|
+
_content_type: Optional[StrictStr] = None,
|
|
133
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
134
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
135
|
+
) -> ApiResponse[CreateFCMPositionTransferResponse]:
|
|
136
|
+
"""Create FCM Position Transfer
|
|
137
|
+
|
|
138
|
+
Endpoint for FCM members to move a position in one market from one of their subtraders into a subtrader under their FCM's error account. **This endpoint must be enabled for your FCM by Kalshi.** Kalshi enables it by configuring the error account that receives transferred positions and gives you that account's user id, which prefixes `target_subtrader_id`. Contact Kalshi to enable it; until then, requests return 400. - The destination is always your FCM's error account. `target_subtrader_id` picks the subtrader under it, which is created on first use. - Each request moves one market for one source subtrader. To move many positions, send one request per subtrader and market. - The transfer is booked like a trade at `price_centicents`, which is always the YES price, even when moving NO. No fee is charged and no fill is created. For YES, the error account pays the price per contract; for NO, it pays $1 minus the price per contract. The FCM receives the same amount. Use 0 for YES or 10000 for NO to move no cash. These amounts assume the source holds the side being moved and the target subtrader holds no opposite position in that market; otherwise the positions net like a trade and the balance changes differ. - The source's current position is not checked. A request for more than the source holds, or with the opposite sign, flips or grows the source's position. - Requests are not idempotent. After a timeout or 5xx, check the position before retrying. - The market must be open, neither account may be blocked, and the error account must have enough available balance on the market's exchange index to pay for the transfer. Otherwise the request returns 409. **Example: moving YES.** A customer subtrader holds 10 YES contracts. Send `position_centicount` 1000 and `price_centicents` 4500 (YES at 45 cents): - The customer subtrader goes from 10 YES to 0, and the error account subtrader from 0 to 10 YES. - The error account pays 10 x $0.45 = $4.50 and the FCM receives $4.50. - Sending `price_centicents` 0 instead moves the position with no cash. **Example: moving NO.** A customer subtrader holds 5 NO contracts. Send `position_centicount` -500 and `price_centicents` 7000 (YES at 70 cents, so NO at 30 cents): - The customer subtrader goes from 5 NO to 0, and the error account subtrader from 0 to 5 NO. - The error account pays 5 x $0.30 = $1.50 and the FCM receives $1.50. - Sending `price_centicents` 10000 instead moves the position with no cash. Sending 0 makes the error account pay the full $1 per contract ($5.00).
|
|
139
|
+
|
|
140
|
+
:param create_fcm_position_transfer_request: (required)
|
|
141
|
+
:type create_fcm_position_transfer_request: CreateFCMPositionTransferRequest
|
|
142
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
143
|
+
number provided, it will be total request
|
|
144
|
+
timeout. It can also be a pair (tuple) of
|
|
145
|
+
(connection, read) timeouts.
|
|
146
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
147
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
148
|
+
request; this effectively ignores the
|
|
149
|
+
authentication in the spec for a single request.
|
|
150
|
+
:type _request_auth: dict, optional
|
|
151
|
+
:param _content_type: force content-type for the request.
|
|
152
|
+
:type _content_type: str, Optional
|
|
153
|
+
:param _headers: set to override the headers for a single
|
|
154
|
+
request; this effectively ignores the headers
|
|
155
|
+
in the spec for a single request.
|
|
156
|
+
:type _headers: dict, optional
|
|
157
|
+
:param _host_index: set to override the host_index for a single
|
|
158
|
+
request; this effectively ignores the host_index
|
|
159
|
+
in the spec for a single request.
|
|
160
|
+
:type _host_index: int, optional
|
|
161
|
+
:return: Returns the result object.
|
|
162
|
+
""" # noqa: E501
|
|
163
|
+
|
|
164
|
+
_param = self._create_fcm_position_transfer_serialize(
|
|
165
|
+
create_fcm_position_transfer_request=create_fcm_position_transfer_request,
|
|
166
|
+
_request_auth=_request_auth,
|
|
167
|
+
_content_type=_content_type,
|
|
168
|
+
_headers=_headers,
|
|
169
|
+
_host_index=_host_index
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
173
|
+
'201': "CreateFCMPositionTransferResponse",
|
|
174
|
+
'400': "ErrorResponse",
|
|
175
|
+
'401': "ErrorResponse",
|
|
176
|
+
'403': "ErrorResponse",
|
|
177
|
+
'404': "ErrorResponse",
|
|
178
|
+
'409': "ErrorResponse",
|
|
179
|
+
'429': "ErrorResponse",
|
|
180
|
+
'500': "ErrorResponse",
|
|
181
|
+
}
|
|
182
|
+
response_data = self.api_client.call_api(
|
|
183
|
+
*_param,
|
|
184
|
+
_request_timeout=_request_timeout
|
|
185
|
+
)
|
|
186
|
+
response_data.read()
|
|
187
|
+
return self.api_client.response_deserialize(
|
|
188
|
+
response_data=response_data,
|
|
189
|
+
response_types_map=_response_types_map,
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
@validate_call
|
|
194
|
+
def create_fcm_position_transfer_without_preload_content(
|
|
195
|
+
self,
|
|
196
|
+
create_fcm_position_transfer_request: CreateFCMPositionTransferRequest,
|
|
197
|
+
_request_timeout: Union[
|
|
198
|
+
None,
|
|
199
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
200
|
+
Tuple[
|
|
201
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
202
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
203
|
+
]
|
|
204
|
+
] = None,
|
|
205
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
206
|
+
_content_type: Optional[StrictStr] = None,
|
|
207
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
208
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
209
|
+
) -> RESTResponseType:
|
|
210
|
+
"""Create FCM Position Transfer
|
|
211
|
+
|
|
212
|
+
Endpoint for FCM members to move a position in one market from one of their subtraders into a subtrader under their FCM's error account. **This endpoint must be enabled for your FCM by Kalshi.** Kalshi enables it by configuring the error account that receives transferred positions and gives you that account's user id, which prefixes `target_subtrader_id`. Contact Kalshi to enable it; until then, requests return 400. - The destination is always your FCM's error account. `target_subtrader_id` picks the subtrader under it, which is created on first use. - Each request moves one market for one source subtrader. To move many positions, send one request per subtrader and market. - The transfer is booked like a trade at `price_centicents`, which is always the YES price, even when moving NO. No fee is charged and no fill is created. For YES, the error account pays the price per contract; for NO, it pays $1 minus the price per contract. The FCM receives the same amount. Use 0 for YES or 10000 for NO to move no cash. These amounts assume the source holds the side being moved and the target subtrader holds no opposite position in that market; otherwise the positions net like a trade and the balance changes differ. - The source's current position is not checked. A request for more than the source holds, or with the opposite sign, flips or grows the source's position. - Requests are not idempotent. After a timeout or 5xx, check the position before retrying. - The market must be open, neither account may be blocked, and the error account must have enough available balance on the market's exchange index to pay for the transfer. Otherwise the request returns 409. **Example: moving YES.** A customer subtrader holds 10 YES contracts. Send `position_centicount` 1000 and `price_centicents` 4500 (YES at 45 cents): - The customer subtrader goes from 10 YES to 0, and the error account subtrader from 0 to 10 YES. - The error account pays 10 x $0.45 = $4.50 and the FCM receives $4.50. - Sending `price_centicents` 0 instead moves the position with no cash. **Example: moving NO.** A customer subtrader holds 5 NO contracts. Send `position_centicount` -500 and `price_centicents` 7000 (YES at 70 cents, so NO at 30 cents): - The customer subtrader goes from 5 NO to 0, and the error account subtrader from 0 to 5 NO. - The error account pays 5 x $0.30 = $1.50 and the FCM receives $1.50. - Sending `price_centicents` 10000 instead moves the position with no cash. Sending 0 makes the error account pay the full $1 per contract ($5.00).
|
|
213
|
+
|
|
214
|
+
:param create_fcm_position_transfer_request: (required)
|
|
215
|
+
:type create_fcm_position_transfer_request: CreateFCMPositionTransferRequest
|
|
216
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
217
|
+
number provided, it will be total request
|
|
218
|
+
timeout. It can also be a pair (tuple) of
|
|
219
|
+
(connection, read) timeouts.
|
|
220
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
221
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
222
|
+
request; this effectively ignores the
|
|
223
|
+
authentication in the spec for a single request.
|
|
224
|
+
:type _request_auth: dict, optional
|
|
225
|
+
:param _content_type: force content-type for the request.
|
|
226
|
+
:type _content_type: str, Optional
|
|
227
|
+
:param _headers: set to override the headers for a single
|
|
228
|
+
request; this effectively ignores the headers
|
|
229
|
+
in the spec for a single request.
|
|
230
|
+
:type _headers: dict, optional
|
|
231
|
+
:param _host_index: set to override the host_index for a single
|
|
232
|
+
request; this effectively ignores the host_index
|
|
233
|
+
in the spec for a single request.
|
|
234
|
+
:type _host_index: int, optional
|
|
235
|
+
:return: Returns the result object.
|
|
236
|
+
""" # noqa: E501
|
|
237
|
+
|
|
238
|
+
_param = self._create_fcm_position_transfer_serialize(
|
|
239
|
+
create_fcm_position_transfer_request=create_fcm_position_transfer_request,
|
|
240
|
+
_request_auth=_request_auth,
|
|
241
|
+
_content_type=_content_type,
|
|
242
|
+
_headers=_headers,
|
|
243
|
+
_host_index=_host_index
|
|
244
|
+
)
|
|
245
|
+
|
|
246
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
247
|
+
'201': "CreateFCMPositionTransferResponse",
|
|
248
|
+
'400': "ErrorResponse",
|
|
249
|
+
'401': "ErrorResponse",
|
|
250
|
+
'403': "ErrorResponse",
|
|
251
|
+
'404': "ErrorResponse",
|
|
252
|
+
'409': "ErrorResponse",
|
|
253
|
+
'429': "ErrorResponse",
|
|
254
|
+
'500': "ErrorResponse",
|
|
255
|
+
}
|
|
256
|
+
response_data = self.api_client.call_api(
|
|
257
|
+
*_param,
|
|
258
|
+
_request_timeout=_request_timeout
|
|
259
|
+
)
|
|
260
|
+
return response_data.response
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
def _create_fcm_position_transfer_serialize(
|
|
264
|
+
self,
|
|
265
|
+
create_fcm_position_transfer_request,
|
|
266
|
+
_request_auth,
|
|
267
|
+
_content_type,
|
|
268
|
+
_headers,
|
|
269
|
+
_host_index,
|
|
270
|
+
) -> RequestSerialized:
|
|
271
|
+
|
|
272
|
+
_host = None
|
|
273
|
+
|
|
274
|
+
_collection_formats: Dict[str, str] = {
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
_path_params: Dict[str, str] = {}
|
|
278
|
+
_query_params: List[Tuple[str, str]] = []
|
|
279
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
280
|
+
_form_params: List[Tuple[str, str]] = []
|
|
281
|
+
_files: Dict[
|
|
282
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
283
|
+
] = {}
|
|
284
|
+
_body_params: Optional[bytes] = None
|
|
285
|
+
|
|
286
|
+
# process the path parameters
|
|
287
|
+
# process the query parameters
|
|
288
|
+
# process the header parameters
|
|
289
|
+
# process the form parameters
|
|
290
|
+
# process the body parameter
|
|
291
|
+
if create_fcm_position_transfer_request is not None:
|
|
292
|
+
_body_params = create_fcm_position_transfer_request
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
# set the HTTP header `Accept`
|
|
296
|
+
if 'Accept' not in _header_params:
|
|
297
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
298
|
+
[
|
|
299
|
+
'application/json'
|
|
300
|
+
]
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
# set the HTTP header `Content-Type`
|
|
304
|
+
if _content_type:
|
|
305
|
+
_header_params['Content-Type'] = _content_type
|
|
306
|
+
else:
|
|
307
|
+
_default_content_type = (
|
|
308
|
+
self.api_client.select_header_content_type(
|
|
309
|
+
[
|
|
310
|
+
'application/json'
|
|
311
|
+
]
|
|
312
|
+
)
|
|
313
|
+
)
|
|
314
|
+
if _default_content_type is not None:
|
|
315
|
+
_header_params['Content-Type'] = _default_content_type
|
|
316
|
+
|
|
317
|
+
# authentication setting
|
|
318
|
+
_auth_settings: List[str] = [
|
|
319
|
+
'kalshiAccessSignature',
|
|
320
|
+
'kalshiAccessKey',
|
|
321
|
+
'kalshiAccessTimestamp'
|
|
322
|
+
]
|
|
323
|
+
|
|
324
|
+
return self.api_client.param_serialize(
|
|
325
|
+
method='POST',
|
|
326
|
+
resource_path='/fcm/positions/transfers',
|
|
327
|
+
path_params=_path_params,
|
|
328
|
+
query_params=_query_params,
|
|
329
|
+
header_params=_header_params,
|
|
330
|
+
body=_body_params,
|
|
331
|
+
post_params=_form_params,
|
|
332
|
+
files=_files,
|
|
333
|
+
auth_settings=_auth_settings,
|
|
334
|
+
collection_formats=_collection_formats,
|
|
335
|
+
_host=_host,
|
|
336
|
+
_request_auth=_request_auth
|
|
337
|
+
)
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
51
342
|
@validate_call
|
|
52
343
|
def create_fcm_subtrader(
|
|
53
344
|
self,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
kalshi_python_sync/api_client.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -97,7 +97,7 @@ class ApiClient:
|
|
|
97
97
|
self.default_headers[header_name] = header_value
|
|
98
98
|
self.cookie = cookie
|
|
99
99
|
# Set default User-Agent.
|
|
100
|
-
self.user_agent = 'OpenAPI-Generator/3.
|
|
100
|
+
self.user_agent = 'OpenAPI-Generator/3.34.0/python'
|
|
101
101
|
self.client_side_validation = configuration.client_side_validation
|
|
102
102
|
|
|
103
103
|
# Kalshi authentication
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -562,8 +562,8 @@ conf = kalshi_python_sync.Configuration(
|
|
|
562
562
|
return "Python SDK Debug Report:\n"\
|
|
563
563
|
"OS: {env}\n"\
|
|
564
564
|
"Python Version: {pyversion}\n"\
|
|
565
|
-
"Version of the API: 3.
|
|
566
|
-
"SDK Package Version: 3.
|
|
565
|
+
"Version of the API: 3.34.0\n"\
|
|
566
|
+
"SDK Package Version: 3.34.0".\
|
|
567
567
|
format(env=sys.platform, pyversion=sys.version)
|
|
568
568
|
|
|
569
569
|
def get_host_settings(self) -> List[HostSetting]:
|
kalshi_python_sync/exceptions.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
8
8
|
|
|
9
|
-
The version of the OpenAPI document: 3.
|
|
9
|
+
The version of the OpenAPI document: 3.34.0
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
12
12
|
Do not edit the class manually.
|
|
@@ -50,6 +50,8 @@ from kalshi_python_sync.models.bucket_limit import BucketLimit
|
|
|
50
50
|
from kalshi_python_sync.models.cancel_order_v2_response import CancelOrderV2Response
|
|
51
51
|
from kalshi_python_sync.models.create_api_key_request import CreateApiKeyRequest
|
|
52
52
|
from kalshi_python_sync.models.create_api_key_response import CreateApiKeyResponse
|
|
53
|
+
from kalshi_python_sync.models.create_fcm_position_transfer_request import CreateFCMPositionTransferRequest
|
|
54
|
+
from kalshi_python_sync.models.create_fcm_position_transfer_response import CreateFCMPositionTransferResponse
|
|
53
55
|
from kalshi_python_sync.models.create_fcm_subtrader_request import CreateFCMSubtraderRequest
|
|
54
56
|
from kalshi_python_sync.models.create_fcm_subtrader_response import CreateFCMSubtraderResponse
|
|
55
57
|
from kalshi_python_sync.models.create_market_in_multivariate_event_collection_request import CreateMarketInMultivariateEventCollectionRequest
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.34.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|