kalshi-typescript 3.6.0 → 3.7.0
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.
- package/.openapi-generator/FILES +323 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +33 -0
- package/README.md +13 -2
- package/api/account-api.ts +129 -0
- package/api/api-keys-api.ts +372 -0
- package/api/communications-api.ts +1053 -0
- package/api/events-api.ts +679 -0
- package/api/exchange-api.ts +390 -0
- package/api/fcm-api.ts +337 -0
- package/api/historical-api.ts +613 -0
- package/api/incentive-programs-api.ts +168 -0
- package/api/live-data-api.ts +207 -0
- package/api/market-api.ts +912 -0
- package/api/milestone-api.ts +258 -0
- package/{dist/esm/api/collection-api.js → api/multivariate-api.ts} +185 -140
- package/api/order-groups-api.ts +666 -0
- package/api/orders-api.ts +965 -0
- package/api/portfolio-api.ts +892 -0
- package/api/search-api.ts +183 -0
- package/api/structured-targets-api.ts +222 -0
- package/api.ts +34 -0
- package/auth.ts +38 -0
- package/base.ts +96 -0
- package/common.ts +98 -0
- package/configuration.ts +93 -0
- package/dist/api/account-api.d.ts +1 -1
- package/dist/api/account-api.js +1 -1
- package/dist/api/api-keys-api.d.ts +1 -1
- package/dist/api/api-keys-api.js +1 -1
- package/dist/api/communications-api.d.ts +9 -5
- package/dist/api/communications-api.js +15 -8
- package/dist/api/events-api.d.ts +1 -1
- package/dist/api/events-api.js +1 -1
- package/dist/api/exchange-api.d.ts +1 -1
- package/dist/api/exchange-api.js +1 -1
- package/dist/api/fcm-api.d.ts +1 -1
- package/dist/api/fcm-api.js +1 -1
- package/dist/api/historical-api.d.ts +290 -0
- package/dist/api/historical-api.js +566 -0
- package/dist/api/incentive-programs-api.d.ts +1 -1
- package/dist/api/incentive-programs-api.js +1 -1
- package/dist/api/live-data-api.d.ts +1 -1
- package/dist/api/live-data-api.js +1 -1
- package/dist/api/market-api.d.ts +5 -5
- package/dist/api/market-api.js +5 -5
- package/dist/api/milestone-api.d.ts +1 -1
- package/dist/api/milestone-api.js +1 -1
- package/dist/api/multivariate-api.d.ts +1 -1
- package/dist/api/multivariate-api.js +1 -1
- package/dist/api/order-groups-api.d.ts +29 -21
- package/dist/api/order-groups-api.js +41 -27
- package/dist/api/orders-api.d.ts +13 -13
- package/dist/api/orders-api.js +13 -13
- package/dist/api/portfolio-api.d.ts +17 -13
- package/dist/api/portfolio-api.js +23 -16
- package/dist/api/search-api.d.ts +1 -1
- package/dist/api/search-api.js +1 -1
- package/dist/api/structured-targets-api.d.ts +1 -1
- package/dist/api/structured-targets-api.js +1 -1
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api/account-api.d.ts +1 -1
- package/dist/esm/api/account-api.js +1 -1
- package/dist/esm/api/api-keys-api.d.ts +1 -1
- package/dist/esm/api/api-keys-api.js +1 -1
- package/dist/esm/api/communications-api.d.ts +9 -5
- package/dist/esm/api/communications-api.js +15 -8
- package/dist/esm/api/events-api.d.ts +1 -1
- package/dist/esm/api/events-api.js +1 -1
- package/dist/esm/api/exchange-api.d.ts +1 -1
- package/dist/esm/api/exchange-api.js +1 -1
- package/dist/esm/api/fcm-api.d.ts +1 -1
- package/dist/esm/api/fcm-api.js +1 -1
- package/dist/esm/api/historical-api.d.ts +290 -0
- package/dist/esm/api/historical-api.js +559 -0
- package/dist/esm/api/incentive-programs-api.d.ts +1 -1
- package/dist/esm/api/incentive-programs-api.js +1 -1
- package/dist/esm/api/live-data-api.d.ts +1 -1
- package/dist/esm/api/live-data-api.js +1 -1
- package/dist/esm/api/market-api.d.ts +5 -5
- package/dist/esm/api/market-api.js +5 -5
- package/dist/esm/api/milestone-api.d.ts +1 -1
- package/dist/esm/api/milestone-api.js +1 -1
- package/dist/esm/api/multivariate-api.d.ts +1 -1
- package/dist/esm/api/multivariate-api.js +1 -1
- package/dist/esm/api/order-groups-api.d.ts +29 -21
- package/dist/esm/api/order-groups-api.js +41 -27
- package/dist/esm/api/orders-api.d.ts +13 -13
- package/dist/esm/api/orders-api.js +13 -13
- package/dist/esm/api/portfolio-api.d.ts +17 -13
- package/dist/esm/api/portfolio-api.js +23 -16
- package/dist/esm/api/search-api.d.ts +1 -1
- package/dist/esm/api/search-api.js +1 -1
- package/dist/esm/api/structured-targets-api.d.ts +1 -1
- package/dist/esm/api/structured-targets-api.js +1 -1
- package/dist/esm/api.d.ts +2 -1
- package/dist/esm/api.js +2 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/accept-quote-request.d.ts +1 -1
- package/dist/esm/models/accept-quote-request.js +1 -1
- package/dist/esm/models/amend-order-request.d.ts +3 -3
- package/dist/esm/models/amend-order-request.js +1 -1
- package/dist/esm/models/amend-order-response.d.ts +1 -1
- package/dist/esm/models/amend-order-response.js +1 -1
- package/dist/esm/models/announcement.d.ts +1 -1
- package/dist/esm/models/announcement.js +1 -1
- package/dist/esm/models/api-key.d.ts +1 -1
- package/dist/esm/models/api-key.js +1 -1
- package/dist/esm/models/apply-subaccount-transfer-request.d.ts +1 -1
- package/dist/esm/models/apply-subaccount-transfer-request.js +1 -1
- package/dist/esm/models/associated-event.d.ts +1 -1
- package/dist/esm/models/associated-event.js +1 -1
- package/dist/esm/models/batch-cancel-orders-individual-response.d.ts +1 -1
- package/dist/esm/models/batch-cancel-orders-individual-response.js +1 -1
- package/dist/esm/models/batch-cancel-orders-request-order.d.ts +1 -1
- package/dist/esm/models/batch-cancel-orders-request-order.js +1 -1
- package/dist/esm/models/batch-cancel-orders-request.d.ts +1 -1
- package/dist/esm/models/batch-cancel-orders-request.js +1 -1
- package/dist/esm/models/batch-cancel-orders-response.d.ts +1 -1
- package/dist/esm/models/batch-cancel-orders-response.js +1 -1
- package/dist/esm/models/batch-create-orders-individual-response.d.ts +1 -1
- package/dist/esm/models/batch-create-orders-individual-response.js +1 -1
- package/dist/esm/models/batch-create-orders-request.d.ts +1 -1
- package/dist/esm/models/batch-create-orders-request.js +1 -1
- package/dist/esm/models/batch-create-orders-response.d.ts +1 -1
- package/dist/esm/models/batch-create-orders-response.js +1 -1
- package/dist/esm/models/batch-get-market-candlesticks-response.d.ts +1 -1
- package/dist/esm/models/batch-get-market-candlesticks-response.js +1 -1
- package/dist/esm/models/bid-ask-distribution-historical.d.ts +29 -0
- package/dist/esm/models/{get-events-candlesticks-response-events-inner.js → bid-ask-distribution-historical.js} +1 -1
- package/dist/esm/models/bid-ask-distribution.d.ts +5 -5
- package/dist/esm/models/bid-ask-distribution.js +1 -1
- package/dist/esm/models/cancel-order-response.d.ts +1 -1
- package/dist/esm/models/cancel-order-response.js +1 -1
- package/dist/esm/models/create-api-key-request.d.ts +1 -1
- package/dist/esm/models/create-api-key-request.js +1 -1
- package/dist/esm/models/create-api-key-response.d.ts +1 -1
- package/dist/esm/models/create-api-key-response.js +1 -1
- package/dist/esm/models/create-market-in-multivariate-event-collection-request.d.ts +1 -1
- package/dist/esm/models/create-market-in-multivariate-event-collection-request.js +1 -1
- package/dist/esm/models/create-market-in-multivariate-event-collection-response.d.ts +1 -1
- package/dist/esm/models/create-market-in-multivariate-event-collection-response.js +1 -1
- package/dist/esm/models/create-order-group-request.d.ts +1 -1
- package/dist/esm/models/create-order-group-request.js +1 -1
- package/dist/esm/models/create-order-group-response.d.ts +1 -1
- package/dist/esm/models/create-order-group-response.js +1 -1
- package/dist/esm/models/create-order-request.d.ts +3 -9
- package/dist/esm/models/create-order-request.js +1 -5
- package/dist/esm/models/create-order-response.d.ts +1 -1
- package/dist/esm/models/create-order-response.js +1 -1
- package/dist/esm/models/create-quote-request.d.ts +3 -3
- package/dist/esm/models/create-quote-request.js +1 -1
- package/dist/esm/models/create-quote-response.d.ts +1 -1
- package/dist/esm/models/create-quote-response.js +1 -1
- package/dist/esm/models/create-rfqrequest.d.ts +11 -2
- package/dist/esm/models/create-rfqrequest.js +1 -1
- package/dist/esm/models/create-rfqresponse.d.ts +1 -1
- package/dist/esm/models/create-rfqresponse.js +1 -1
- package/dist/esm/models/create-subaccount-response.d.ts +1 -1
- package/dist/esm/models/create-subaccount-response.js +1 -1
- package/dist/esm/models/daily-schedule.d.ts +1 -1
- package/dist/esm/models/daily-schedule.js +1 -1
- package/dist/esm/models/decrease-order-request.d.ts +1 -1
- package/dist/esm/models/decrease-order-request.js +1 -1
- package/dist/esm/models/decrease-order-response.d.ts +1 -1
- package/dist/esm/models/decrease-order-response.js +1 -1
- package/dist/esm/models/error-response.d.ts +1 -1
- package/dist/esm/models/error-response.js +1 -1
- package/dist/esm/models/event-data.d.ts +1 -1
- package/dist/esm/models/event-data.js +1 -1
- package/dist/esm/models/event-position.d.ts +5 -5
- package/dist/esm/models/event-position.js +1 -1
- package/dist/esm/models/exchange-instance.d.ts +1 -1
- package/dist/esm/models/exchange-instance.js +1 -1
- package/dist/esm/models/exchange-status.d.ts +1 -1
- package/dist/esm/models/exchange-status.js +1 -1
- package/dist/esm/models/fill.d.ts +6 -2
- package/dist/esm/models/fill.js +1 -1
- package/dist/esm/models/forecast-percentiles-point.d.ts +1 -1
- package/dist/esm/models/forecast-percentiles-point.js +1 -1
- package/dist/esm/models/generate-api-key-request.d.ts +1 -1
- package/dist/esm/models/generate-api-key-request.js +1 -1
- package/dist/esm/models/generate-api-key-response.d.ts +1 -1
- package/dist/esm/models/generate-api-key-response.js +1 -1
- package/dist/esm/models/get-account-api-limits-response.d.ts +1 -1
- package/dist/esm/models/get-account-api-limits-response.js +1 -1
- package/dist/esm/models/get-api-keys-response.d.ts +1 -1
- package/dist/esm/models/get-api-keys-response.js +1 -1
- package/dist/esm/models/get-balance-response.d.ts +1 -1
- package/dist/esm/models/get-balance-response.js +1 -1
- package/dist/esm/models/get-communications-idresponse.d.ts +1 -1
- package/dist/esm/models/get-communications-idresponse.js +1 -1
- package/dist/esm/models/get-event-candlesticks-response.d.ts +1 -1
- package/dist/esm/models/get-event-candlesticks-response.js +1 -1
- package/dist/esm/models/get-event-forecast-percentiles-history-response.d.ts +1 -1
- package/dist/esm/models/get-event-forecast-percentiles-history-response.js +1 -1
- package/dist/esm/models/get-event-metadata-response.d.ts +1 -1
- package/dist/esm/models/get-event-metadata-response.js +1 -1
- package/dist/esm/models/get-event-response.d.ts +1 -1
- package/dist/esm/models/get-event-response.js +1 -1
- package/dist/esm/models/get-events-response.d.ts +1 -1
- package/dist/esm/models/get-events-response.js +1 -1
- package/dist/esm/models/get-exchange-announcements-response.d.ts +1 -1
- package/dist/esm/models/get-exchange-announcements-response.js +1 -1
- package/dist/esm/models/get-exchange-schedule-response.d.ts +1 -1
- package/dist/esm/models/get-exchange-schedule-response.js +1 -1
- package/dist/esm/models/get-fills-response.d.ts +1 -1
- package/dist/esm/models/get-fills-response.js +1 -1
- package/dist/esm/models/get-filters-by-sports-response.d.ts +1 -1
- package/dist/esm/models/get-filters-by-sports-response.js +1 -1
- package/dist/esm/models/get-historical-cutoff-response.d.ts +25 -0
- package/dist/esm/models/{account-limit.js → get-historical-cutoff-response.js} +1 -1
- package/dist/esm/models/get-incentive-programs-response.d.ts +1 -1
- package/dist/esm/models/get-incentive-programs-response.js +1 -1
- package/dist/esm/models/get-live-data-response.d.ts +1 -1
- package/dist/esm/models/get-live-data-response.js +1 -1
- package/dist/esm/models/get-live-datas-response.d.ts +1 -1
- package/dist/esm/models/get-live-datas-response.js +1 -1
- package/dist/esm/models/get-market-candlesticks-historical-response.d.ts +22 -0
- package/dist/esm/models/{get-events-candlesticks-response.js → get-market-candlesticks-historical-response.js} +1 -1
- package/dist/esm/models/get-market-candlesticks-response.d.ts +1 -1
- package/dist/esm/models/get-market-candlesticks-response.js +1 -1
- package/dist/esm/models/get-market-orderbook-response.d.ts +1 -1
- package/dist/esm/models/get-market-orderbook-response.js +1 -1
- package/dist/esm/models/get-market-response.d.ts +1 -1
- package/dist/esm/models/get-market-response.js +1 -1
- package/dist/esm/models/get-markets-response.d.ts +1 -1
- package/dist/esm/models/get-markets-response.js +1 -1
- package/dist/esm/models/get-milestone-response.d.ts +1 -1
- package/dist/esm/models/get-milestone-response.js +1 -1
- package/dist/esm/models/get-milestones-response.d.ts +1 -1
- package/dist/esm/models/get-milestones-response.js +1 -1
- package/dist/esm/models/get-multivariate-event-collection-lookup-history-response.d.ts +1 -1
- package/dist/esm/models/get-multivariate-event-collection-lookup-history-response.js +1 -1
- package/dist/esm/models/get-multivariate-event-collection-response.d.ts +1 -1
- package/dist/esm/models/get-multivariate-event-collection-response.js +1 -1
- package/dist/esm/models/get-multivariate-event-collections-response.d.ts +1 -1
- package/dist/esm/models/get-multivariate-event-collections-response.js +1 -1
- package/dist/esm/models/get-multivariate-events-response.d.ts +1 -1
- package/dist/esm/models/get-multivariate-events-response.js +1 -1
- package/dist/esm/models/get-order-group-response.d.ts +1 -1
- package/dist/esm/models/get-order-group-response.js +1 -1
- package/dist/esm/models/get-order-groups-response.d.ts +1 -1
- package/dist/esm/models/get-order-groups-response.js +1 -1
- package/dist/esm/models/get-order-queue-position-response.d.ts +5 -1
- package/dist/esm/models/get-order-queue-position-response.js +1 -1
- package/dist/esm/models/get-order-queue-positions-response.d.ts +1 -1
- package/dist/esm/models/get-order-queue-positions-response.js +1 -1
- package/dist/esm/models/get-order-response.d.ts +1 -1
- package/dist/esm/models/get-order-response.js +1 -1
- package/dist/esm/models/get-orders-response.d.ts +1 -1
- package/dist/esm/models/get-orders-response.js +1 -1
- package/dist/esm/models/get-portfolio-resting-order-total-value-response.d.ts +1 -1
- package/dist/esm/models/get-portfolio-resting-order-total-value-response.js +1 -1
- package/dist/esm/models/get-positions-response.d.ts +1 -1
- package/dist/esm/models/get-positions-response.js +1 -1
- package/dist/esm/models/get-quote-response.d.ts +1 -1
- package/dist/esm/models/get-quote-response.js +1 -1
- package/dist/esm/models/get-quotes-response.d.ts +1 -1
- package/dist/esm/models/get-quotes-response.js +1 -1
- package/dist/esm/models/get-rfqresponse.d.ts +1 -1
- package/dist/esm/models/get-rfqresponse.js +1 -1
- package/dist/esm/models/get-rfqs-response.d.ts +1 -1
- package/dist/esm/models/get-rfqs-response.js +1 -1
- package/dist/esm/models/get-series-fee-changes-response.d.ts +1 -1
- package/dist/esm/models/get-series-fee-changes-response.js +1 -1
- package/dist/esm/models/get-series-list-response.d.ts +1 -1
- package/dist/esm/models/get-series-list-response.js +1 -1
- package/dist/esm/models/get-series-response.d.ts +1 -1
- package/dist/esm/models/get-series-response.js +1 -1
- package/dist/esm/models/get-settlements-response.d.ts +1 -1
- package/dist/esm/models/get-settlements-response.js +1 -1
- package/dist/esm/models/get-structured-target-response.d.ts +1 -1
- package/dist/esm/models/get-structured-target-response.js +1 -1
- package/dist/esm/models/get-structured-targets-response.d.ts +1 -1
- package/dist/esm/models/get-structured-targets-response.js +1 -1
- package/dist/esm/models/get-subaccount-balances-response.d.ts +1 -1
- package/dist/esm/models/get-subaccount-balances-response.js +1 -1
- package/dist/esm/models/get-subaccount-transfers-response.d.ts +1 -1
- package/dist/esm/models/get-subaccount-transfers-response.js +1 -1
- package/dist/esm/models/get-tags-for-series-categories-response.d.ts +1 -1
- package/dist/esm/models/get-tags-for-series-categories-response.js +1 -1
- package/dist/esm/models/get-trades-response.d.ts +1 -1
- package/dist/esm/models/get-trades-response.js +1 -1
- package/dist/esm/models/get-user-data-timestamp-response.d.ts +1 -1
- package/dist/esm/models/get-user-data-timestamp-response.js +1 -1
- package/dist/esm/models/incentive-program.d.ts +5 -1
- package/dist/esm/models/incentive-program.js +1 -1
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/models/intra-exchange-instance-transfer-request.d.ts +1 -9
- package/dist/esm/models/intra-exchange-instance-transfer-request.js +1 -1
- package/dist/esm/models/intra-exchange-instance-transfer-response.d.ts +1 -1
- package/dist/esm/models/intra-exchange-instance-transfer-response.js +1 -1
- package/dist/esm/models/live-data.d.ts +1 -1
- package/dist/esm/models/live-data.js +1 -1
- package/dist/esm/models/lookup-point.d.ts +1 -1
- package/dist/esm/models/lookup-point.js +1 -1
- package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-request.d.ts +1 -1
- package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-request.js +1 -1
- package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-response.d.ts +1 -1
- package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-response.js +1 -1
- package/dist/esm/models/maintenance-window.d.ts +1 -1
- package/dist/esm/models/maintenance-window.js +1 -1
- package/dist/esm/models/market-candlestick-historical.d.ts +30 -0
- package/dist/esm/models/{get-subaccount-balance-response.js → market-candlestick-historical.js} +1 -1
- package/dist/esm/models/market-candlestick.d.ts +1 -1
- package/dist/esm/models/market-candlestick.js +1 -1
- package/dist/esm/models/market-candlesticks-response.d.ts +1 -1
- package/dist/esm/models/market-candlesticks-response.js +1 -1
- package/dist/esm/models/market-metadata.d.ts +1 -1
- package/dist/esm/models/market-metadata.js +1 -1
- package/dist/esm/models/market-position.d.ts +5 -5
- package/dist/esm/models/market-position.js +1 -1
- package/dist/esm/models/market.d.ts +15 -14
- package/dist/esm/models/market.js +1 -1
- package/dist/esm/models/milestone.d.ts +1 -1
- package/dist/esm/models/milestone.js +1 -1
- package/dist/esm/models/multivariate-event-collection.d.ts +1 -1
- package/dist/esm/models/multivariate-event-collection.js +1 -1
- package/dist/esm/models/mve-selected-leg.d.ts +2 -2
- package/dist/esm/models/mve-selected-leg.js +1 -1
- package/dist/esm/models/order-group.d.ts +1 -1
- package/dist/esm/models/order-group.js +1 -1
- package/dist/esm/models/order-queue-position.d.ts +5 -1
- package/dist/esm/models/order-queue-position.js +1 -1
- package/dist/esm/models/order-status.d.ts +1 -1
- package/dist/esm/models/order-status.js +1 -1
- package/dist/esm/models/order.d.ts +11 -7
- package/dist/esm/models/order.js +1 -1
- package/dist/esm/models/orderbook-count-fp.d.ts +1 -1
- package/dist/esm/models/orderbook-count-fp.js +1 -1
- package/dist/esm/models/orderbook.d.ts +1 -1
- package/dist/esm/models/orderbook.js +1 -1
- package/dist/esm/models/percentile-point.d.ts +1 -1
- package/dist/esm/models/percentile-point.js +1 -1
- package/dist/esm/models/price-distribution-historical.d.ts +37 -0
- package/dist/esm/models/price-distribution-historical.js +14 -0
- package/dist/esm/models/price-distribution.d.ts +9 -9
- package/dist/esm/models/price-distribution.js +1 -1
- package/dist/esm/models/price-range.d.ts +1 -1
- package/dist/esm/models/price-range.js +1 -1
- package/dist/esm/models/quote.d.ts +9 -4
- package/dist/esm/models/quote.js +1 -1
- package/dist/esm/models/rfq.d.ts +8 -3
- package/dist/esm/models/rfq.js +1 -1
- package/dist/esm/models/schedule.d.ts +1 -1
- package/dist/esm/models/schedule.js +1 -1
- package/dist/esm/models/scope-list.d.ts +1 -1
- package/dist/esm/models/scope-list.js +1 -1
- package/dist/esm/models/self-trade-prevention-type.d.ts +1 -1
- package/dist/esm/models/self-trade-prevention-type.js +1 -1
- package/dist/esm/models/series-fee-change.d.ts +1 -1
- package/dist/esm/models/series-fee-change.js +1 -1
- package/dist/esm/models/series.d.ts +1 -1
- package/dist/esm/models/series.js +1 -1
- package/dist/esm/models/settlement-source.d.ts +1 -1
- package/dist/esm/models/settlement-source.js +1 -1
- package/dist/esm/models/settlement.d.ts +2 -2
- package/dist/esm/models/settlement.js +1 -1
- package/dist/esm/models/sport-filter-details.d.ts +1 -1
- package/dist/esm/models/sport-filter-details.js +1 -1
- package/dist/esm/models/structured-target.d.ts +1 -1
- package/dist/esm/models/structured-target.js +1 -1
- package/dist/esm/models/subaccount-balance.d.ts +2 -2
- package/dist/esm/models/subaccount-balance.js +1 -1
- package/dist/esm/models/subaccount-transfer.d.ts +1 -1
- package/dist/esm/models/subaccount-transfer.js +1 -1
- package/dist/esm/models/ticker-pair.d.ts +1 -1
- package/dist/esm/models/ticker-pair.js +1 -1
- package/dist/esm/models/trade.d.ts +3 -3
- package/dist/esm/models/trade.js +1 -1
- package/dist/esm/models/update-order-group-limit-request.d.ts +1 -1
- package/dist/esm/models/update-order-group-limit-request.js +1 -1
- package/dist/esm/models/weekly-schedule.d.ts +1 -1
- package/dist/esm/models/weekly-schedule.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/accept-quote-request.d.ts +1 -1
- package/dist/models/accept-quote-request.js +1 -1
- package/dist/models/amend-order-request.d.ts +3 -3
- package/dist/models/amend-order-request.js +1 -1
- package/dist/models/amend-order-response.d.ts +1 -1
- package/dist/models/amend-order-response.js +1 -1
- package/dist/models/announcement.d.ts +1 -1
- package/dist/models/announcement.js +1 -1
- package/dist/models/api-key.d.ts +1 -1
- package/dist/models/api-key.js +1 -1
- package/dist/models/apply-subaccount-transfer-request.d.ts +1 -1
- package/dist/models/apply-subaccount-transfer-request.js +1 -1
- package/dist/models/associated-event.d.ts +1 -1
- package/dist/models/associated-event.js +1 -1
- package/dist/models/batch-cancel-orders-individual-response.d.ts +1 -1
- package/dist/models/batch-cancel-orders-individual-response.js +1 -1
- package/dist/models/batch-cancel-orders-request-order.d.ts +1 -1
- package/dist/models/batch-cancel-orders-request-order.js +1 -1
- package/dist/models/batch-cancel-orders-request.d.ts +1 -1
- package/dist/models/batch-cancel-orders-request.js +1 -1
- package/dist/models/batch-cancel-orders-response.d.ts +1 -1
- package/dist/models/batch-cancel-orders-response.js +1 -1
- package/dist/models/batch-create-orders-individual-response.d.ts +1 -1
- package/dist/models/batch-create-orders-individual-response.js +1 -1
- package/dist/models/batch-create-orders-request.d.ts +1 -1
- package/dist/models/batch-create-orders-request.js +1 -1
- package/dist/models/batch-create-orders-response.d.ts +1 -1
- package/dist/models/batch-create-orders-response.js +1 -1
- package/dist/models/batch-get-market-candlesticks-response.d.ts +1 -1
- package/dist/models/batch-get-market-candlesticks-response.js +1 -1
- package/dist/models/bid-ask-distribution-historical.d.ts +29 -0
- package/dist/models/{account-limit.js → bid-ask-distribution-historical.js} +1 -1
- package/dist/models/bid-ask-distribution.d.ts +5 -5
- package/dist/models/bid-ask-distribution.js +1 -1
- package/dist/models/cancel-order-response.d.ts +1 -1
- package/dist/models/cancel-order-response.js +1 -1
- package/dist/models/create-api-key-request.d.ts +1 -1
- package/dist/models/create-api-key-request.js +1 -1
- package/dist/models/create-api-key-response.d.ts +1 -1
- package/dist/models/create-api-key-response.js +1 -1
- package/dist/models/create-market-in-multivariate-event-collection-request.d.ts +1 -1
- package/dist/models/create-market-in-multivariate-event-collection-request.js +1 -1
- package/dist/models/create-market-in-multivariate-event-collection-response.d.ts +1 -1
- package/dist/models/create-market-in-multivariate-event-collection-response.js +1 -1
- package/dist/models/create-order-group-request.d.ts +1 -1
- package/dist/models/create-order-group-request.js +1 -1
- package/dist/models/create-order-group-response.d.ts +1 -1
- package/dist/models/create-order-group-response.js +1 -1
- package/dist/models/create-order-request.d.ts +3 -9
- package/dist/models/create-order-request.js +2 -6
- package/dist/models/create-order-response.d.ts +1 -1
- package/dist/models/create-order-response.js +1 -1
- package/dist/models/create-quote-request.d.ts +3 -3
- package/dist/models/create-quote-request.js +1 -1
- package/dist/models/create-quote-response.d.ts +1 -1
- package/dist/models/create-quote-response.js +1 -1
- package/dist/models/create-rfqrequest.d.ts +11 -2
- package/dist/models/create-rfqrequest.js +1 -1
- package/dist/models/create-rfqresponse.d.ts +1 -1
- package/dist/models/create-rfqresponse.js +1 -1
- package/dist/models/create-subaccount-response.d.ts +1 -1
- package/dist/models/create-subaccount-response.js +1 -1
- package/dist/models/daily-schedule.d.ts +1 -1
- package/dist/models/daily-schedule.js +1 -1
- package/dist/models/decrease-order-request.d.ts +1 -1
- package/dist/models/decrease-order-request.js +1 -1
- package/dist/models/decrease-order-response.d.ts +1 -1
- package/dist/models/decrease-order-response.js +1 -1
- package/dist/models/error-response.d.ts +1 -1
- package/dist/models/error-response.js +1 -1
- package/dist/models/event-data.d.ts +1 -1
- package/dist/models/event-data.js +1 -1
- package/dist/models/event-position.d.ts +5 -5
- package/dist/models/event-position.js +1 -1
- package/dist/models/exchange-instance.d.ts +1 -1
- package/dist/models/exchange-instance.js +1 -1
- package/dist/models/exchange-status.d.ts +1 -1
- package/dist/models/exchange-status.js +1 -1
- package/dist/models/fill.d.ts +6 -2
- package/dist/models/fill.js +1 -1
- package/dist/models/forecast-percentiles-point.d.ts +1 -1
- package/dist/models/forecast-percentiles-point.js +1 -1
- package/dist/models/generate-api-key-request.d.ts +1 -1
- package/dist/models/generate-api-key-request.js +1 -1
- package/dist/models/generate-api-key-response.d.ts +1 -1
- package/dist/models/generate-api-key-response.js +1 -1
- package/dist/models/get-account-api-limits-response.d.ts +1 -1
- package/dist/models/get-account-api-limits-response.js +1 -1
- package/dist/models/get-api-keys-response.d.ts +1 -1
- package/dist/models/get-api-keys-response.js +1 -1
- package/dist/models/get-balance-response.d.ts +1 -1
- package/dist/models/get-balance-response.js +1 -1
- package/dist/models/get-communications-idresponse.d.ts +1 -1
- package/dist/models/get-communications-idresponse.js +1 -1
- package/dist/models/get-event-candlesticks-response.d.ts +1 -1
- package/dist/models/get-event-candlesticks-response.js +1 -1
- package/dist/models/get-event-forecast-percentiles-history-response.d.ts +1 -1
- package/dist/models/get-event-forecast-percentiles-history-response.js +1 -1
- package/dist/models/get-event-metadata-response.d.ts +1 -1
- package/dist/models/get-event-metadata-response.js +1 -1
- package/dist/models/get-event-response.d.ts +1 -1
- package/dist/models/get-event-response.js +1 -1
- package/dist/models/get-events-response.d.ts +1 -1
- package/dist/models/get-events-response.js +1 -1
- package/dist/models/get-exchange-announcements-response.d.ts +1 -1
- package/dist/models/get-exchange-announcements-response.js +1 -1
- package/dist/models/get-exchange-schedule-response.d.ts +1 -1
- package/dist/models/get-exchange-schedule-response.js +1 -1
- package/dist/models/get-fills-response.d.ts +1 -1
- package/dist/models/get-fills-response.js +1 -1
- package/dist/models/get-filters-by-sports-response.d.ts +1 -1
- package/dist/models/get-filters-by-sports-response.js +1 -1
- package/dist/models/get-historical-cutoff-response.d.ts +25 -0
- package/dist/models/{get-events-candlesticks-response-events-inner.js → get-historical-cutoff-response.js} +1 -1
- package/dist/models/get-incentive-programs-response.d.ts +1 -1
- package/dist/models/get-incentive-programs-response.js +1 -1
- package/dist/models/get-live-data-response.d.ts +1 -1
- package/dist/models/get-live-data-response.js +1 -1
- package/dist/models/get-live-datas-response.d.ts +1 -1
- package/dist/models/get-live-datas-response.js +1 -1
- package/dist/models/get-market-candlesticks-historical-response.d.ts +22 -0
- package/dist/models/{get-events-candlesticks-response.js → get-market-candlesticks-historical-response.js} +1 -1
- package/dist/models/get-market-candlesticks-response.d.ts +1 -1
- package/dist/models/get-market-candlesticks-response.js +1 -1
- package/dist/models/get-market-orderbook-response.d.ts +1 -1
- package/dist/models/get-market-orderbook-response.js +1 -1
- package/dist/models/get-market-response.d.ts +1 -1
- package/dist/models/get-market-response.js +1 -1
- package/dist/models/get-markets-response.d.ts +1 -1
- package/dist/models/get-markets-response.js +1 -1
- package/dist/models/get-milestone-response.d.ts +1 -1
- package/dist/models/get-milestone-response.js +1 -1
- package/dist/models/get-milestones-response.d.ts +1 -1
- package/dist/models/get-milestones-response.js +1 -1
- package/dist/models/get-multivariate-event-collection-lookup-history-response.d.ts +1 -1
- package/dist/models/get-multivariate-event-collection-lookup-history-response.js +1 -1
- package/dist/models/get-multivariate-event-collection-response.d.ts +1 -1
- package/dist/models/get-multivariate-event-collection-response.js +1 -1
- package/dist/models/get-multivariate-event-collections-response.d.ts +1 -1
- package/dist/models/get-multivariate-event-collections-response.js +1 -1
- package/dist/models/get-multivariate-events-response.d.ts +1 -1
- package/dist/models/get-multivariate-events-response.js +1 -1
- package/dist/models/get-order-group-response.d.ts +1 -1
- package/dist/models/get-order-group-response.js +1 -1
- package/dist/models/get-order-groups-response.d.ts +1 -1
- package/dist/models/get-order-groups-response.js +1 -1
- package/dist/models/get-order-queue-position-response.d.ts +5 -1
- package/dist/models/get-order-queue-position-response.js +1 -1
- package/dist/models/get-order-queue-positions-response.d.ts +1 -1
- package/dist/models/get-order-queue-positions-response.js +1 -1
- package/dist/models/get-order-response.d.ts +1 -1
- package/dist/models/get-order-response.js +1 -1
- package/dist/models/get-orders-response.d.ts +1 -1
- package/dist/models/get-orders-response.js +1 -1
- package/dist/models/get-portfolio-resting-order-total-value-response.d.ts +1 -1
- package/dist/models/get-portfolio-resting-order-total-value-response.js +1 -1
- package/dist/models/get-positions-response.d.ts +1 -1
- package/dist/models/get-positions-response.js +1 -1
- package/dist/models/get-quote-response.d.ts +1 -1
- package/dist/models/get-quote-response.js +1 -1
- package/dist/models/get-quotes-response.d.ts +1 -1
- package/dist/models/get-quotes-response.js +1 -1
- package/dist/models/get-rfqresponse.d.ts +1 -1
- package/dist/models/get-rfqresponse.js +1 -1
- package/dist/models/get-rfqs-response.d.ts +1 -1
- package/dist/models/get-rfqs-response.js +1 -1
- package/dist/models/get-series-fee-changes-response.d.ts +1 -1
- package/dist/models/get-series-fee-changes-response.js +1 -1
- package/dist/models/get-series-list-response.d.ts +1 -1
- package/dist/models/get-series-list-response.js +1 -1
- package/dist/models/get-series-response.d.ts +1 -1
- package/dist/models/get-series-response.js +1 -1
- package/dist/models/get-settlements-response.d.ts +1 -1
- package/dist/models/get-settlements-response.js +1 -1
- package/dist/models/get-structured-target-response.d.ts +1 -1
- package/dist/models/get-structured-target-response.js +1 -1
- package/dist/models/get-structured-targets-response.d.ts +1 -1
- package/dist/models/get-structured-targets-response.js +1 -1
- package/dist/models/get-subaccount-balances-response.d.ts +1 -1
- package/dist/models/get-subaccount-balances-response.js +1 -1
- package/dist/models/get-subaccount-transfers-response.d.ts +1 -1
- package/dist/models/get-subaccount-transfers-response.js +1 -1
- package/dist/models/get-tags-for-series-categories-response.d.ts +1 -1
- package/dist/models/get-tags-for-series-categories-response.js +1 -1
- package/dist/models/get-trades-response.d.ts +1 -1
- package/dist/models/get-trades-response.js +1 -1
- package/dist/models/get-user-data-timestamp-response.d.ts +1 -1
- package/dist/models/get-user-data-timestamp-response.js +1 -1
- package/dist/models/incentive-program.d.ts +5 -1
- package/dist/models/incentive-program.js +1 -1
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/intra-exchange-instance-transfer-request.d.ts +1 -9
- package/dist/models/intra-exchange-instance-transfer-request.js +1 -1
- package/dist/models/intra-exchange-instance-transfer-response.d.ts +1 -1
- package/dist/models/intra-exchange-instance-transfer-response.js +1 -1
- package/dist/models/live-data.d.ts +1 -1
- package/dist/models/live-data.js +1 -1
- package/dist/models/lookup-point.d.ts +1 -1
- package/dist/models/lookup-point.js +1 -1
- package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-request.d.ts +1 -1
- package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-request.js +1 -1
- package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-response.d.ts +1 -1
- package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-response.js +1 -1
- package/dist/models/maintenance-window.d.ts +1 -1
- package/dist/models/maintenance-window.js +1 -1
- package/dist/models/market-candlestick-historical.d.ts +30 -0
- package/dist/models/{get-subaccount-balance-response.js → market-candlestick-historical.js} +1 -1
- package/dist/models/market-candlestick.d.ts +1 -1
- package/dist/models/market-candlestick.js +1 -1
- package/dist/models/market-candlesticks-response.d.ts +1 -1
- package/dist/models/market-candlesticks-response.js +1 -1
- package/dist/models/market-metadata.d.ts +1 -1
- package/dist/models/market-metadata.js +1 -1
- package/dist/models/market-position.d.ts +5 -5
- package/dist/models/market-position.js +1 -1
- package/dist/models/market.d.ts +15 -14
- package/dist/models/market.js +1 -1
- package/dist/models/milestone.d.ts +1 -1
- package/dist/models/milestone.js +1 -1
- package/dist/models/multivariate-event-collection.d.ts +1 -1
- package/dist/models/multivariate-event-collection.js +1 -1
- package/dist/models/mve-selected-leg.d.ts +2 -2
- package/dist/models/mve-selected-leg.js +1 -1
- package/dist/models/order-group.d.ts +1 -1
- package/dist/models/order-group.js +1 -1
- package/dist/models/order-queue-position.d.ts +5 -1
- package/dist/models/order-queue-position.js +1 -1
- package/dist/models/order-status.d.ts +1 -1
- package/dist/models/order-status.js +1 -1
- package/dist/models/order.d.ts +11 -7
- package/dist/models/order.js +1 -1
- package/dist/models/orderbook-count-fp.d.ts +1 -1
- package/dist/models/orderbook-count-fp.js +1 -1
- package/dist/models/orderbook.d.ts +1 -1
- package/dist/models/orderbook.js +1 -1
- package/dist/models/percentile-point.d.ts +1 -1
- package/dist/models/percentile-point.js +1 -1
- package/dist/models/price-distribution-historical.d.ts +37 -0
- package/dist/models/price-distribution-historical.js +15 -0
- package/dist/models/price-distribution.d.ts +9 -9
- package/dist/models/price-distribution.js +1 -1
- package/dist/models/price-range.d.ts +1 -1
- package/dist/models/price-range.js +1 -1
- package/dist/models/quote.d.ts +9 -4
- package/dist/models/quote.js +1 -1
- package/dist/models/rfq.d.ts +8 -3
- package/dist/models/rfq.js +1 -1
- package/dist/models/schedule.d.ts +1 -1
- package/dist/models/schedule.js +1 -1
- package/dist/models/scope-list.d.ts +1 -1
- package/dist/models/scope-list.js +1 -1
- package/dist/models/self-trade-prevention-type.d.ts +1 -1
- package/dist/models/self-trade-prevention-type.js +1 -1
- package/dist/models/series-fee-change.d.ts +1 -1
- package/dist/models/series-fee-change.js +1 -1
- package/dist/models/series.d.ts +1 -1
- package/dist/models/series.js +1 -1
- package/dist/models/settlement-source.d.ts +1 -1
- package/dist/models/settlement-source.js +1 -1
- package/dist/models/settlement.d.ts +2 -2
- package/dist/models/settlement.js +1 -1
- package/dist/models/sport-filter-details.d.ts +1 -1
- package/dist/models/sport-filter-details.js +1 -1
- package/dist/models/structured-target.d.ts +1 -1
- package/dist/models/structured-target.js +1 -1
- package/dist/models/subaccount-balance.d.ts +2 -2
- package/dist/models/subaccount-balance.js +1 -1
- package/dist/models/subaccount-transfer.d.ts +1 -1
- package/dist/models/subaccount-transfer.js +1 -1
- package/dist/models/ticker-pair.d.ts +1 -1
- package/dist/models/ticker-pair.js +1 -1
- package/dist/models/trade.d.ts +3 -3
- package/dist/models/trade.js +1 -1
- package/dist/models/update-order-group-limit-request.d.ts +1 -1
- package/dist/models/update-order-group-limit-request.js +1 -1
- package/dist/models/weekly-schedule.d.ts +1 -1
- package/dist/models/weekly-schedule.js +1 -1
- package/docs/AcceptQuoteRequest.md +20 -0
- package/docs/AccountApi.md +38 -0
- package/docs/AmendOrderRequest.md +42 -0
- package/docs/AmendOrderResponse.md +22 -0
- package/docs/Announcement.md +26 -0
- package/docs/ApiKey.md +24 -0
- package/docs/ApiKeysApi.md +145 -0
- package/docs/ApplySubaccountTransferRequest.md +26 -0
- package/docs/AssociatedEvent.md +28 -0
- package/docs/BatchCancelOrdersIndividualResponse.md +28 -0
- package/docs/BatchCancelOrdersRequest.md +22 -0
- package/docs/BatchCancelOrdersRequestOrder.md +22 -0
- package/docs/BatchCancelOrdersResponse.md +20 -0
- package/docs/BatchCreateOrdersIndividualResponse.md +24 -0
- package/docs/BatchCreateOrdersRequest.md +20 -0
- package/docs/BatchCreateOrdersResponse.md +20 -0
- package/docs/BatchGetMarketCandlesticksResponse.md +20 -0
- package/docs/BidAskDistribution.md +34 -0
- package/docs/BidAskDistributionHistorical.md +26 -0
- package/docs/CancelOrderResponse.md +24 -0
- package/docs/CommunicationsApi.md +404 -0
- package/docs/CreateApiKeyRequest.md +24 -0
- package/docs/CreateApiKeyResponse.md +20 -0
- package/docs/CreateMarketInMultivariateEventCollectionRequest.md +22 -0
- package/docs/CreateMarketInMultivariateEventCollectionResponse.md +24 -0
- package/docs/CreateOrderGroupRequest.md +24 -0
- package/docs/CreateOrderGroupResponse.md +20 -0
- package/docs/CreateOrderRequest.md +58 -0
- package/docs/CreateOrderResponse.md +20 -0
- package/docs/CreateQuoteRequest.md +28 -0
- package/docs/CreateQuoteResponse.md +20 -0
- package/docs/CreateRFQRequest.md +36 -0
- package/docs/CreateRFQResponse.md +20 -0
- package/docs/CreateSubaccountResponse.md +20 -0
- package/docs/DailySchedule.md +22 -0
- package/docs/DecreaseOrderRequest.md +28 -0
- package/docs/DecreaseOrderResponse.md +20 -0
- package/docs/ErrorResponse.md +26 -0
- package/docs/EventData.md +42 -0
- package/docs/EventPosition.md +40 -0
- package/docs/EventsApi.md +239 -0
- package/docs/ExchangeApi.md +163 -0
- package/docs/ExchangeInstance.md +11 -0
- package/docs/ExchangeStatus.md +24 -0
- package/docs/FcmApi.md +92 -0
- package/docs/Fill.md +58 -0
- package/docs/ForecastPercentilesPoint.md +26 -0
- package/docs/GenerateApiKeyRequest.md +22 -0
- package/docs/GenerateApiKeyResponse.md +22 -0
- package/docs/GetAccountApiLimitsResponse.md +24 -0
- package/docs/GetApiKeysResponse.md +20 -0
- package/docs/GetBalanceResponse.md +24 -0
- package/docs/GetCommunicationsIDResponse.md +20 -0
- package/docs/GetEventCandlesticksResponse.md +24 -0
- package/docs/GetEventForecastPercentilesHistoryResponse.md +20 -0
- package/docs/GetEventMetadataResponse.md +30 -0
- package/docs/GetEventResponse.md +22 -0
- package/docs/GetEventsResponse.md +24 -0
- package/docs/GetExchangeAnnouncementsResponse.md +20 -0
- package/docs/GetExchangeScheduleResponse.md +20 -0
- package/docs/GetFillsResponse.md +22 -0
- package/docs/GetFiltersBySportsResponse.md +22 -0
- package/docs/GetHistoricalCutoffResponse.md +24 -0
- package/docs/GetIncentiveProgramsResponse.md +22 -0
- package/docs/GetLiveDataResponse.md +20 -0
- package/docs/GetLiveDatasResponse.md +20 -0
- package/docs/GetMarketCandlesticksHistoricalResponse.md +22 -0
- package/docs/GetMarketCandlesticksResponse.md +22 -0
- package/docs/GetMarketOrderbookResponse.md +22 -0
- package/docs/GetMarketResponse.md +20 -0
- package/docs/GetMarketsResponse.md +22 -0
- package/docs/GetMilestoneResponse.md +20 -0
- package/docs/GetMilestonesResponse.md +22 -0
- package/docs/GetMultivariateEventCollectionLookupHistoryResponse.md +20 -0
- package/docs/GetMultivariateEventCollectionResponse.md +20 -0
- package/docs/GetMultivariateEventCollectionsResponse.md +22 -0
- package/docs/GetMultivariateEventsResponse.md +22 -0
- package/docs/GetOrderGroupResponse.md +26 -0
- package/docs/GetOrderGroupsResponse.md +20 -0
- package/docs/GetOrderQueuePositionResponse.md +22 -0
- package/docs/GetOrderQueuePositionsResponse.md +20 -0
- package/docs/GetOrderResponse.md +20 -0
- package/docs/GetOrdersResponse.md +22 -0
- package/docs/GetPortfolioRestingOrderTotalValueResponse.md +20 -0
- package/docs/GetPositionsResponse.md +24 -0
- package/docs/GetQuoteResponse.md +20 -0
- package/docs/GetQuotesResponse.md +22 -0
- package/docs/GetRFQResponse.md +20 -0
- package/docs/GetRFQsResponse.md +22 -0
- package/docs/GetSeriesFeeChangesResponse.md +20 -0
- package/docs/GetSeriesListResponse.md +20 -0
- package/docs/GetSeriesResponse.md +20 -0
- package/docs/GetSettlementsResponse.md +22 -0
- package/docs/GetStructuredTargetResponse.md +20 -0
- package/docs/GetStructuredTargetsResponse.md +22 -0
- package/docs/GetSubaccountBalancesResponse.md +20 -0
- package/docs/GetSubaccountTransfersResponse.md +22 -0
- package/docs/GetTagsForSeriesCategoriesResponse.md +20 -0
- package/docs/GetTradesResponse.md +22 -0
- package/docs/GetUserDataTimestampResponse.md +20 -0
- package/docs/HistoricalApi.md +223 -0
- package/docs/IncentiveProgram.md +40 -0
- package/docs/IncentiveProgramsApi.md +44 -0
- package/docs/IntraExchangeInstanceTransferRequest.md +24 -0
- package/docs/IntraExchangeInstanceTransferResponse.md +20 -0
- package/docs/LiveData.md +24 -0
- package/docs/LiveDataApi.md +75 -0
- package/docs/LookupPoint.md +26 -0
- package/docs/LookupTickersForMarketInMultivariateEventCollectionRequest.md +20 -0
- package/docs/LookupTickersForMarketInMultivariateEventCollectionResponse.md +22 -0
- package/docs/MaintenanceWindow.md +22 -0
- package/docs/Market.md +150 -0
- package/docs/MarketApi.md +315 -0
- package/docs/MarketCandlestick.md +34 -0
- package/docs/MarketCandlestickHistorical.md +30 -0
- package/docs/MarketCandlesticksResponse.md +22 -0
- package/docs/MarketMetadata.md +24 -0
- package/docs/MarketPosition.md +44 -0
- package/docs/Milestone.md +42 -0
- package/docs/MilestoneApi.md +85 -0
- package/docs/MultivariateApi.md +188 -0
- package/docs/MultivariateEventCollection.md +46 -0
- package/docs/MveSelectedLeg.md +26 -0
- package/docs/Order.md +86 -0
- package/docs/OrderGroup.md +26 -0
- package/docs/OrderGroupsApi.md +260 -0
- package/docs/OrderQueuePosition.md +26 -0
- package/docs/OrderStatus.md +13 -0
- package/docs/Orderbook.md +27 -0
- package/docs/OrderbookCountFp.md +23 -0
- package/docs/OrdersApi.md +375 -0
- package/docs/PercentilePoint.md +26 -0
- package/docs/PortfolioApi.md +324 -0
- package/docs/PriceDistribution.md +50 -0
- package/docs/PriceDistributionHistorical.md +30 -0
- package/docs/PriceRange.md +24 -0
- package/docs/Quote.md +72 -0
- package/docs/RFQ.md +50 -0
- package/docs/Schedule.md +22 -0
- package/docs/ScopeList.md +20 -0
- package/docs/SearchApi.md +69 -0
- package/docs/SelfTradePreventionType.md +11 -0
- package/docs/Series.md +46 -0
- package/docs/SeriesFeeChange.md +28 -0
- package/docs/Settlement.md +44 -0
- package/docs/SettlementSource.md +22 -0
- package/docs/SportFilterDetails.md +22 -0
- package/docs/StructuredTarget.md +30 -0
- package/docs/StructuredTargetsApi.md +79 -0
- package/docs/SubaccountBalance.md +24 -0
- package/docs/SubaccountTransfer.md +28 -0
- package/docs/TickerPair.md +24 -0
- package/docs/Trade.md +40 -0
- package/docs/UpdateOrderGroupLimitRequest.md +22 -0
- package/docs/WeeklySchedule.md +36 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/models/accept-quote-request.ts +31 -0
- package/models/amend-order-request.ts +81 -0
- package/models/amend-order-response.ts +24 -0
- package/models/announcement.ts +50 -0
- package/models/api-key.ts +31 -0
- package/{dist/esm/models/transfer-between-subaccounts-request.d.ts → models/apply-subaccount-transfer-request.ts} +13 -3
- package/models/associated-event.ts +39 -0
- package/models/batch-cancel-orders-individual-response.ts +39 -0
- package/models/batch-cancel-orders-request-order.ts +27 -0
- package/models/batch-cancel-orders-request.ts +31 -0
- package/models/batch-cancel-orders-response.ts +23 -0
- package/models/batch-create-orders-individual-response.ts +28 -0
- package/models/batch-create-orders-request.ts +23 -0
- package/models/batch-create-orders-response.ts +23 -0
- package/models/batch-get-market-candlesticks-response.ts +26 -0
- package/models/bid-ask-distribution-historical.ts +35 -0
- package/models/bid-ask-distribution.ts +51 -0
- package/models/cancel-order-response.ts +28 -0
- package/models/create-api-key-request.ts +31 -0
- package/models/create-api-key-response.ts +23 -0
- package/models/create-market-in-multivariate-event-collection-request.ts +30 -0
- package/models/create-market-in-multivariate-event-collection-response.ts +31 -0
- package/models/create-order-group-request.ts +31 -0
- package/models/create-order-group-response.ts +23 -0
- package/models/create-order-request.ts +90 -0
- package/models/create-order-response.ts +23 -0
- package/models/create-quote-request.ts +39 -0
- package/models/create-quote-response.ts +23 -0
- package/models/create-rfqrequest.ts +56 -0
- package/models/create-rfqresponse.ts +23 -0
- package/models/create-subaccount-response.ts +23 -0
- package/models/daily-schedule.ts +27 -0
- package/models/decrease-order-request.ts +39 -0
- package/models/decrease-order-response.ts +23 -0
- package/models/error-response.ts +35 -0
- package/models/event-data.ts +70 -0
- package/models/event-position.ts +63 -0
- package/models/exchange-instance.ts +29 -0
- package/models/exchange-status.ts +31 -0
- package/models/fill.ts +113 -0
- package/models/forecast-percentiles-point.ts +38 -0
- package/models/generate-api-key-request.ts +27 -0
- package/models/generate-api-key-response.ts +27 -0
- package/{dist/esm/models/account-limit.d.ts → models/get-account-api-limits-response.ts} +13 -7
- package/models/get-api-keys-response.ts +26 -0
- package/models/get-balance-response.ts +31 -0
- package/models/get-communications-idresponse.ts +23 -0
- package/{dist/models/get-events-candlesticks-response-events-inner.d.ts → models/get-event-candlesticks-response.ts} +11 -7
- package/models/get-event-forecast-percentiles-history-response.ts +26 -0
- package/models/get-event-metadata-response.ts +49 -0
- package/models/get-event-response.ts +30 -0
- package/models/get-events-response.ts +37 -0
- package/models/get-exchange-announcements-response.ts +26 -0
- package/models/get-exchange-schedule-response.ts +23 -0
- package/models/get-fills-response.ts +24 -0
- package/models/get-filters-by-sports-response.ts +30 -0
- package/models/get-historical-cutoff-response.ts +31 -0
- package/models/get-incentive-programs-response.ts +27 -0
- package/models/get-live-data-response.ts +23 -0
- package/models/get-live-datas-response.ts +23 -0
- package/models/get-market-candlesticks-historical-response.ts +30 -0
- package/models/get-market-candlesticks-response.ts +30 -0
- package/models/get-market-orderbook-response.ts +27 -0
- package/models/get-market-response.ts +23 -0
- package/models/get-markets-response.ts +24 -0
- package/models/get-milestone-response.ts +23 -0
- package/models/get-milestones-response.ts +30 -0
- package/models/get-multivariate-event-collection-lookup-history-response.ts +26 -0
- package/models/get-multivariate-event-collection-response.ts +23 -0
- package/models/get-multivariate-event-collections-response.ts +30 -0
- package/models/get-multivariate-events-response.ts +30 -0
- package/models/get-order-group-response.ts +35 -0
- package/models/get-order-groups-response.ts +23 -0
- package/models/get-order-queue-position-response.ts +27 -0
- package/models/get-order-queue-positions-response.ts +26 -0
- package/models/get-order-response.ts +23 -0
- package/models/get-orders-response.ts +24 -0
- package/models/get-portfolio-resting-order-total-value-response.ts +23 -0
- package/models/get-positions-response.ts +37 -0
- package/models/get-quote-response.ts +23 -0
- package/models/get-quotes-response.ts +30 -0
- package/models/get-rfqresponse.ts +23 -0
- package/models/get-rfqs-response.ts +30 -0
- package/models/get-series-fee-changes-response.ts +23 -0
- package/models/get-series-list-response.ts +23 -0
- package/models/get-series-response.ts +23 -0
- package/models/get-settlements-response.ts +24 -0
- package/models/get-structured-target-response.ts +23 -0
- package/models/get-structured-targets-response.ts +27 -0
- package/models/get-subaccount-balances-response.ts +23 -0
- package/models/get-subaccount-transfers-response.ts +27 -0
- package/models/get-tags-for-series-categories-response.ts +23 -0
- package/models/get-trades-response.ts +24 -0
- package/models/get-user-data-timestamp-response.ts +23 -0
- package/models/incentive-program.ts +71 -0
- package/models/index.ts +138 -0
- package/models/intra-exchange-instance-transfer-request.ts +30 -0
- package/models/intra-exchange-instance-transfer-response.ts +23 -0
- package/{dist/models/account-limit.d.ts → models/live-data.ts} +15 -9
- package/models/lookup-point.ts +38 -0
- package/models/lookup-tickers-for-market-in-multivariate-event-collection-request.ts +26 -0
- package/models/lookup-tickers-for-market-in-multivariate-event-collection-response.ts +27 -0
- package/models/maintenance-window.ts +27 -0
- package/models/market-candlestick-historical.ts +40 -0
- package/models/market-candlestick.ts +48 -0
- package/models/market-candlesticks-response.ts +30 -0
- package/models/market-metadata.ts +31 -0
- package/models/market-position.ts +71 -0
- package/models/market.ts +310 -0
- package/models/milestone.ts +67 -0
- package/models/multivariate-event-collection.ts +78 -0
- package/models/mve-selected-leg.ts +35 -0
- package/models/order-group.ts +35 -0
- package/models/order-queue-position.ts +35 -0
- package/models/order-status.ts +30 -0
- package/models/order.ts +142 -0
- package/models/orderbook-count-fp.ts +24 -0
- package/models/orderbook.ts +26 -0
- package/models/percentile-point.ts +35 -0
- package/models/price-distribution-historical.ts +43 -0
- package/models/price-distribution.ts +83 -0
- package/models/price-range.ts +31 -0
- package/models/quote.ts +145 -0
- package/models/rfq.ts +95 -0
- package/models/schedule.ts +33 -0
- package/models/scope-list.ts +23 -0
- package/models/self-trade-prevention-type.ts +29 -0
- package/models/series-fee-change.ts +48 -0
- package/models/series.ts +87 -0
- package/models/settlement-source.ts +27 -0
- package/models/settlement.ts +81 -0
- package/models/sport-filter-details.ts +30 -0
- package/models/structured-target.ts +43 -0
- package/models/subaccount-balance.ts +31 -0
- package/models/subaccount-transfer.ts +39 -0
- package/models/ticker-pair.ts +39 -0
- package/models/trade.ts +71 -0
- package/models/update-order-group-limit-request.ts +27 -0
- package/models/weekly-schedule.ts +58 -0
- package/package.json +13 -13
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
- package/dist/api/collection-api.d.ts +0 -242
- package/dist/api/collection-api.js +0 -467
- package/dist/api/markets-api.d.ts +0 -263
- package/dist/api/markets-api.js +0 -515
- package/dist/api/milestones-api.d.ts +0 -104
- package/dist/api/milestones-api.js +0 -209
- package/dist/api/multivariate-collections-api.d.ts +0 -138
- package/dist/api/multivariate-collections-api.js +0 -278
- package/dist/api/series-api.d.ts +0 -100
- package/dist/api/series-api.js +0 -202
- package/dist/esm/api/collection-api.d.ts +0 -242
- package/dist/esm/api/markets-api.d.ts +0 -263
- package/dist/esm/api/markets-api.js +0 -508
- package/dist/esm/api/milestones-api.d.ts +0 -104
- package/dist/esm/api/milestones-api.js +0 -202
- package/dist/esm/api/multivariate-collections-api.d.ts +0 -138
- package/dist/esm/api/multivariate-collections-api.js +0 -271
- package/dist/esm/api/series-api.d.ts +0 -100
- package/dist/esm/api/series-api.js +0 -195
- package/dist/esm/models/batch-cancel-orders-response-responses-inner.d.ts +0 -17
- package/dist/esm/models/batch-cancel-orders-response-responses-inner.js +0 -14
- package/dist/esm/models/batch-create-orders-response-responses-inner.d.ts +0 -17
- package/dist/esm/models/batch-create-orders-response-responses-inner.js +0 -14
- package/dist/esm/models/candlestick.d.ts +0 -20
- package/dist/esm/models/candlestick.js +0 -14
- package/dist/esm/models/error-response-error.d.ts +0 -25
- package/dist/esm/models/error-response-error.js +0 -14
- package/dist/esm/models/event.d.ts +0 -26
- package/dist/esm/models/event.js +0 -18
- package/dist/esm/models/get-events-candlesticks-response-events-inner.d.ts +0 -30
- package/dist/esm/models/get-events-candlesticks-response.d.ts +0 -18
- package/dist/esm/models/get-exchange-schedule-response-schedule.d.ts +0 -21
- package/dist/esm/models/get-exchange-schedule-response-schedule.js +0 -14
- package/dist/esm/models/get-market-orderbook-response-orderbook.d.ts +0 -16
- package/dist/esm/models/get-market-orderbook-response-orderbook.js +0 -14
- package/dist/esm/models/get-queue-positions-request.d.ts +0 -14
- package/dist/esm/models/get-queue-positions-request.js +0 -14
- package/dist/esm/models/get-queue-positions-response.d.ts +0 -16
- package/dist/esm/models/get-queue-positions-response.js +0 -14
- package/dist/esm/models/get-series-by-ticker-response.d.ts +0 -15
- package/dist/esm/models/get-series-by-ticker-response.js +0 -14
- package/dist/esm/models/get-subaccount-balance-response.d.ts +0 -21
- package/dist/esm/models/get-total-resting-order-value-response.d.ts +0 -14
- package/dist/esm/models/get-total-resting-order-value-response.js +0 -14
- package/dist/esm/models/lookup-bundle-request-bundle-inner.d.ts +0 -15
- package/dist/esm/models/lookup-bundle-request-bundle-inner.js +0 -14
- package/dist/esm/models/lookup-bundle-request.d.ts +0 -15
- package/dist/esm/models/lookup-bundle-request.js +0 -14
- package/dist/esm/models/lookup-bundle-response.d.ts +0 -15
- package/dist/esm/models/lookup-bundle-response.js +0 -14
- package/dist/esm/models/multivariate-event-collection-events-inner.d.ts +0 -17
- package/dist/esm/models/multivariate-event-collection-events-inner.js +0 -14
- package/dist/esm/models/orderbook-level-count-fp-inner.d.ts +0 -15
- package/dist/esm/models/orderbook-level-count-fp-inner.js +0 -14
- package/dist/esm/models/orderbook-level.d.ts +0 -15
- package/dist/esm/models/orderbook-level.js +0 -14
- package/dist/esm/models/position.d.ts +0 -26
- package/dist/esm/models/position.js +0 -17
- package/dist/esm/models/price-level-count-fp-inner.d.ts +0 -15
- package/dist/esm/models/price-level-count-fp-inner.js +0 -14
- package/dist/esm/models/price-level-dollars-inner.d.ts +0 -15
- package/dist/esm/models/price-level-dollars-inner.js +0 -14
- package/dist/esm/models/transfer-between-subaccounts-request.js +0 -14
- package/dist/models/batch-cancel-orders-response-responses-inner.d.ts +0 -17
- package/dist/models/batch-cancel-orders-response-responses-inner.js +0 -15
- package/dist/models/batch-create-orders-response-responses-inner.d.ts +0 -17
- package/dist/models/batch-create-orders-response-responses-inner.js +0 -15
- package/dist/models/candlestick.d.ts +0 -20
- package/dist/models/candlestick.js +0 -15
- package/dist/models/error-response-error.d.ts +0 -25
- package/dist/models/error-response-error.js +0 -15
- package/dist/models/event.d.ts +0 -26
- package/dist/models/event.js +0 -21
- package/dist/models/get-events-candlesticks-response.d.ts +0 -18
- package/dist/models/get-exchange-schedule-response-schedule.d.ts +0 -21
- package/dist/models/get-exchange-schedule-response-schedule.js +0 -15
- package/dist/models/get-market-orderbook-response-orderbook.d.ts +0 -16
- package/dist/models/get-market-orderbook-response-orderbook.js +0 -15
- package/dist/models/get-queue-positions-request.d.ts +0 -14
- package/dist/models/get-queue-positions-request.js +0 -15
- package/dist/models/get-queue-positions-response.d.ts +0 -16
- package/dist/models/get-queue-positions-response.js +0 -15
- package/dist/models/get-series-by-ticker-response.d.ts +0 -15
- package/dist/models/get-series-by-ticker-response.js +0 -15
- package/dist/models/get-subaccount-balance-response.d.ts +0 -21
- package/dist/models/get-total-resting-order-value-response.d.ts +0 -14
- package/dist/models/get-total-resting-order-value-response.js +0 -15
- package/dist/models/lookup-bundle-request-bundle-inner.d.ts +0 -15
- package/dist/models/lookup-bundle-request-bundle-inner.js +0 -15
- package/dist/models/lookup-bundle-request.d.ts +0 -15
- package/dist/models/lookup-bundle-request.js +0 -15
- package/dist/models/lookup-bundle-response.d.ts +0 -15
- package/dist/models/lookup-bundle-response.js +0 -15
- package/dist/models/multivariate-event-collection-events-inner.d.ts +0 -17
- package/dist/models/multivariate-event-collection-events-inner.js +0 -15
- package/dist/models/orderbook-level-count-fp-inner.d.ts +0 -15
- package/dist/models/orderbook-level-count-fp-inner.js +0 -15
- package/dist/models/orderbook-level.d.ts +0 -15
- package/dist/models/orderbook-level.js +0 -15
- package/dist/models/position.d.ts +0 -26
- package/dist/models/position.js +0 -20
- package/dist/models/price-level-count-fp-inner.d.ts +0 -15
- package/dist/models/price-level-count-fp-inner.js +0 -15
- package/dist/models/price-level-dollars-inner.d.ts +0 -15
- package/dist/models/price-level-dollars-inner.js +0 -15
- package/dist/models/transfer-between-subaccounts-request.d.ts +0 -25
- package/dist/models/transfer-between-subaccounts-request.js +0 -15
|
@@ -0,0 +1,892 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Kalshi Trade API Manual Endpoints
|
|
5
|
+
* Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.7.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// URLSearchParams not necessarily used
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { URL, URLSearchParams } from 'url';
|
|
22
|
+
// Some imports not used depending on template conditions
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import type { ApplySubaccountTransferRequest } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import type { CreateSubaccountResponse } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import type { ErrorResponse } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import type { GetBalanceResponse } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import type { GetFillsResponse } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import type { GetPortfolioRestingOrderTotalValueResponse } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import type { GetPositionsResponse } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import type { GetSettlementsResponse } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import type { GetSubaccountBalancesResponse } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import type { GetSubaccountTransfersResponse } from '../models';
|
|
47
|
+
/**
|
|
48
|
+
* PortfolioApi - axios parameter creator
|
|
49
|
+
*/
|
|
50
|
+
export const PortfolioApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
51
|
+
return {
|
|
52
|
+
/**
|
|
53
|
+
* Transfers funds between the authenticated user\'s subaccounts. Use 0 for the primary account, or 1-32 for numbered subaccounts.
|
|
54
|
+
* @summary Transfer Between Subaccounts
|
|
55
|
+
* @param {ApplySubaccountTransferRequest} applySubaccountTransferRequest
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
applySubaccountTransfer: async (applySubaccountTransferRequest: ApplySubaccountTransferRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
60
|
+
// verify required parameter 'applySubaccountTransferRequest' is not null or undefined
|
|
61
|
+
assertParamExists('applySubaccountTransfer', 'applySubaccountTransferRequest', applySubaccountTransferRequest)
|
|
62
|
+
const localVarPath = `/portfolio/subaccounts/transfer`;
|
|
63
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
64
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
65
|
+
let baseOptions;
|
|
66
|
+
if (configuration) {
|
|
67
|
+
baseOptions = configuration.baseOptions;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
71
|
+
const localVarHeaderParameter = {} as any;
|
|
72
|
+
const localVarQueryParameter = {} as any;
|
|
73
|
+
|
|
74
|
+
// authentication kalshiAccessSignature required
|
|
75
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration)
|
|
76
|
+
|
|
77
|
+
// authentication kalshiAccessKey required
|
|
78
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration)
|
|
79
|
+
|
|
80
|
+
// authentication kalshiAccessTimestamp required
|
|
81
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
86
|
+
|
|
87
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
88
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
90
|
+
localVarRequestOptions.data = serializeDataIfNeeded(applySubaccountTransferRequest, localVarRequestOptions, configuration)
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
url: toPathString(localVarUrlObj),
|
|
94
|
+
options: localVarRequestOptions,
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
* Creates a new subaccount for the authenticated user. Subaccounts are numbered sequentially starting from 1. Maximum 32 subaccounts per user.
|
|
99
|
+
* @summary Create Subaccount
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
createSubaccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
104
|
+
const localVarPath = `/portfolio/subaccounts`;
|
|
105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
+
let baseOptions;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
113
|
+
const localVarHeaderParameter = {} as any;
|
|
114
|
+
const localVarQueryParameter = {} as any;
|
|
115
|
+
|
|
116
|
+
// authentication kalshiAccessSignature required
|
|
117
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration)
|
|
118
|
+
|
|
119
|
+
// authentication kalshiAccessKey required
|
|
120
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration)
|
|
121
|
+
|
|
122
|
+
// authentication kalshiAccessTimestamp required
|
|
123
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
url: toPathString(localVarUrlObj),
|
|
133
|
+
options: localVarRequestOptions,
|
|
134
|
+
};
|
|
135
|
+
},
|
|
136
|
+
/**
|
|
137
|
+
* Endpoint for getting the balance and portfolio value of a member. Both values are returned in cents.
|
|
138
|
+
* @summary Get Balance
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
getBalance: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
143
|
+
const localVarPath = `/portfolio/balance`;
|
|
144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146
|
+
let baseOptions;
|
|
147
|
+
if (configuration) {
|
|
148
|
+
baseOptions = configuration.baseOptions;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
152
|
+
const localVarHeaderParameter = {} as any;
|
|
153
|
+
const localVarQueryParameter = {} as any;
|
|
154
|
+
|
|
155
|
+
// authentication kalshiAccessSignature required
|
|
156
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration)
|
|
157
|
+
|
|
158
|
+
// authentication kalshiAccessKey required
|
|
159
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration)
|
|
160
|
+
|
|
161
|
+
// authentication kalshiAccessTimestamp required
|
|
162
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
168
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
169
|
+
|
|
170
|
+
return {
|
|
171
|
+
url: toPathString(localVarUrlObj),
|
|
172
|
+
options: localVarRequestOptions,
|
|
173
|
+
};
|
|
174
|
+
},
|
|
175
|
+
/**
|
|
176
|
+
* Endpoint for getting all fills for the member. A fill is when a trade you have is matched.
|
|
177
|
+
* @summary Get Fills
|
|
178
|
+
* @param {string} [ticker] Filter by market ticker
|
|
179
|
+
* @param {string} [orderId] Filter by order ID
|
|
180
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
181
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
182
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
183
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
184
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
getFills: async (ticker?: string, orderId?: string, minTs?: number, maxTs?: number, limit?: number, cursor?: string, subaccount?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
189
|
+
const localVarPath = `/portfolio/fills`;
|
|
190
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
192
|
+
let baseOptions;
|
|
193
|
+
if (configuration) {
|
|
194
|
+
baseOptions = configuration.baseOptions;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
198
|
+
const localVarHeaderParameter = {} as any;
|
|
199
|
+
const localVarQueryParameter = {} as any;
|
|
200
|
+
|
|
201
|
+
// authentication kalshiAccessSignature required
|
|
202
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration)
|
|
203
|
+
|
|
204
|
+
// authentication kalshiAccessKey required
|
|
205
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration)
|
|
206
|
+
|
|
207
|
+
// authentication kalshiAccessTimestamp required
|
|
208
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration)
|
|
209
|
+
|
|
210
|
+
if (ticker !== undefined) {
|
|
211
|
+
localVarQueryParameter['ticker'] = ticker;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if (orderId !== undefined) {
|
|
215
|
+
localVarQueryParameter['order_id'] = orderId;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (minTs !== undefined) {
|
|
219
|
+
localVarQueryParameter['min_ts'] = minTs;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (maxTs !== undefined) {
|
|
223
|
+
localVarQueryParameter['max_ts'] = maxTs;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (limit !== undefined) {
|
|
227
|
+
localVarQueryParameter['limit'] = limit;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (cursor !== undefined) {
|
|
231
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (subaccount !== undefined) {
|
|
235
|
+
localVarQueryParameter['subaccount'] = subaccount;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
241
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
242
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
243
|
+
|
|
244
|
+
return {
|
|
245
|
+
url: toPathString(localVarUrlObj),
|
|
246
|
+
options: localVarRequestOptions,
|
|
247
|
+
};
|
|
248
|
+
},
|
|
249
|
+
/**
|
|
250
|
+
* Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you.
|
|
251
|
+
* @summary Get Total Resting Order Value
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
getPortfolioRestingOrderTotalValue: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
256
|
+
const localVarPath = `/portfolio/summary/total_resting_order_value`;
|
|
257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
258
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
259
|
+
let baseOptions;
|
|
260
|
+
if (configuration) {
|
|
261
|
+
baseOptions = configuration.baseOptions;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
265
|
+
const localVarHeaderParameter = {} as any;
|
|
266
|
+
const localVarQueryParameter = {} as any;
|
|
267
|
+
|
|
268
|
+
// authentication kalshiAccessSignature required
|
|
269
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration)
|
|
270
|
+
|
|
271
|
+
// authentication kalshiAccessKey required
|
|
272
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration)
|
|
273
|
+
|
|
274
|
+
// authentication kalshiAccessTimestamp required
|
|
275
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration)
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
280
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
281
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
282
|
+
|
|
283
|
+
return {
|
|
284
|
+
url: toPathString(localVarUrlObj),
|
|
285
|
+
options: localVarRequestOptions,
|
|
286
|
+
};
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
* Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted: position, total_traded
|
|
290
|
+
* @summary Get Positions
|
|
291
|
+
* @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page.
|
|
292
|
+
* @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100.
|
|
293
|
+
* @param {string} [countFilter] Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted - position, total_traded
|
|
294
|
+
* @param {string} [ticker] Filter by market ticker
|
|
295
|
+
* @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
|
|
296
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
*/
|
|
300
|
+
getPositions: async (cursor?: string, limit?: number, countFilter?: string, ticker?: string, eventTicker?: string, subaccount?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
301
|
+
const localVarPath = `/portfolio/positions`;
|
|
302
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
303
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
304
|
+
let baseOptions;
|
|
305
|
+
if (configuration) {
|
|
306
|
+
baseOptions = configuration.baseOptions;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
310
|
+
const localVarHeaderParameter = {} as any;
|
|
311
|
+
const localVarQueryParameter = {} as any;
|
|
312
|
+
|
|
313
|
+
// authentication kalshiAccessSignature required
|
|
314
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration)
|
|
315
|
+
|
|
316
|
+
// authentication kalshiAccessKey required
|
|
317
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration)
|
|
318
|
+
|
|
319
|
+
// authentication kalshiAccessTimestamp required
|
|
320
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration)
|
|
321
|
+
|
|
322
|
+
if (cursor !== undefined) {
|
|
323
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
if (limit !== undefined) {
|
|
327
|
+
localVarQueryParameter['limit'] = limit;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
if (countFilter !== undefined) {
|
|
331
|
+
localVarQueryParameter['count_filter'] = countFilter;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
if (ticker !== undefined) {
|
|
335
|
+
localVarQueryParameter['ticker'] = ticker;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (eventTicker !== undefined) {
|
|
339
|
+
localVarQueryParameter['event_ticker'] = eventTicker;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
if (subaccount !== undefined) {
|
|
343
|
+
localVarQueryParameter['subaccount'] = subaccount;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
349
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
350
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
351
|
+
|
|
352
|
+
return {
|
|
353
|
+
url: toPathString(localVarUrlObj),
|
|
354
|
+
options: localVarRequestOptions,
|
|
355
|
+
};
|
|
356
|
+
},
|
|
357
|
+
/**
|
|
358
|
+
* Endpoint for getting the member\'s settlements historical track.
|
|
359
|
+
* @summary Get Settlements
|
|
360
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
361
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
362
|
+
* @param {string} [ticker] Filter by market ticker
|
|
363
|
+
* @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
|
|
364
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
365
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
366
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
367
|
+
* @param {*} [options] Override http request option.
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
*/
|
|
370
|
+
getSettlements: async (limit?: number, cursor?: string, ticker?: string, eventTicker?: string, minTs?: number, maxTs?: number, subaccount?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
371
|
+
const localVarPath = `/portfolio/settlements`;
|
|
372
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
373
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
374
|
+
let baseOptions;
|
|
375
|
+
if (configuration) {
|
|
376
|
+
baseOptions = configuration.baseOptions;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
380
|
+
const localVarHeaderParameter = {} as any;
|
|
381
|
+
const localVarQueryParameter = {} as any;
|
|
382
|
+
|
|
383
|
+
// authentication kalshiAccessSignature required
|
|
384
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration)
|
|
385
|
+
|
|
386
|
+
// authentication kalshiAccessKey required
|
|
387
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration)
|
|
388
|
+
|
|
389
|
+
// authentication kalshiAccessTimestamp required
|
|
390
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration)
|
|
391
|
+
|
|
392
|
+
if (limit !== undefined) {
|
|
393
|
+
localVarQueryParameter['limit'] = limit;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
if (cursor !== undefined) {
|
|
397
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
if (ticker !== undefined) {
|
|
401
|
+
localVarQueryParameter['ticker'] = ticker;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
if (eventTicker !== undefined) {
|
|
405
|
+
localVarQueryParameter['event_ticker'] = eventTicker;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (minTs !== undefined) {
|
|
409
|
+
localVarQueryParameter['min_ts'] = minTs;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
if (maxTs !== undefined) {
|
|
413
|
+
localVarQueryParameter['max_ts'] = maxTs;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (subaccount !== undefined) {
|
|
417
|
+
localVarQueryParameter['subaccount'] = subaccount;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
423
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
424
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
425
|
+
|
|
426
|
+
return {
|
|
427
|
+
url: toPathString(localVarUrlObj),
|
|
428
|
+
options: localVarRequestOptions,
|
|
429
|
+
};
|
|
430
|
+
},
|
|
431
|
+
/**
|
|
432
|
+
* Gets balances for all subaccounts including the primary account.
|
|
433
|
+
* @summary Get All Subaccount Balances
|
|
434
|
+
* @param {*} [options] Override http request option.
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
*/
|
|
437
|
+
getSubaccountBalances: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
438
|
+
const localVarPath = `/portfolio/subaccounts/balances`;
|
|
439
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
440
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
441
|
+
let baseOptions;
|
|
442
|
+
if (configuration) {
|
|
443
|
+
baseOptions = configuration.baseOptions;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
447
|
+
const localVarHeaderParameter = {} as any;
|
|
448
|
+
const localVarQueryParameter = {} as any;
|
|
449
|
+
|
|
450
|
+
// authentication kalshiAccessSignature required
|
|
451
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration)
|
|
452
|
+
|
|
453
|
+
// authentication kalshiAccessKey required
|
|
454
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration)
|
|
455
|
+
|
|
456
|
+
// authentication kalshiAccessTimestamp required
|
|
457
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration)
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
462
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
463
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
464
|
+
|
|
465
|
+
return {
|
|
466
|
+
url: toPathString(localVarUrlObj),
|
|
467
|
+
options: localVarRequestOptions,
|
|
468
|
+
};
|
|
469
|
+
},
|
|
470
|
+
/**
|
|
471
|
+
* Gets a paginated list of all transfers between subaccounts for the authenticated user.
|
|
472
|
+
* @summary Get Subaccount Transfers
|
|
473
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
474
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
getSubaccountTransfers: async (limit?: number, cursor?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
479
|
+
const localVarPath = `/portfolio/subaccounts/transfers`;
|
|
480
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
481
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
482
|
+
let baseOptions;
|
|
483
|
+
if (configuration) {
|
|
484
|
+
baseOptions = configuration.baseOptions;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
488
|
+
const localVarHeaderParameter = {} as any;
|
|
489
|
+
const localVarQueryParameter = {} as any;
|
|
490
|
+
|
|
491
|
+
// authentication kalshiAccessSignature required
|
|
492
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration)
|
|
493
|
+
|
|
494
|
+
// authentication kalshiAccessKey required
|
|
495
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration)
|
|
496
|
+
|
|
497
|
+
// authentication kalshiAccessTimestamp required
|
|
498
|
+
await setApiKeyToObject(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration)
|
|
499
|
+
|
|
500
|
+
if (limit !== undefined) {
|
|
501
|
+
localVarQueryParameter['limit'] = limit;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
if (cursor !== undefined) {
|
|
505
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
511
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
512
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
513
|
+
|
|
514
|
+
return {
|
|
515
|
+
url: toPathString(localVarUrlObj),
|
|
516
|
+
options: localVarRequestOptions,
|
|
517
|
+
};
|
|
518
|
+
},
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* PortfolioApi - functional programming interface
|
|
524
|
+
*/
|
|
525
|
+
export const PortfolioApiFp = function(configuration?: Configuration) {
|
|
526
|
+
const localVarAxiosParamCreator = PortfolioApiAxiosParamCreator(configuration)
|
|
527
|
+
return {
|
|
528
|
+
/**
|
|
529
|
+
* Transfers funds between the authenticated user\'s subaccounts. Use 0 for the primary account, or 1-32 for numbered subaccounts.
|
|
530
|
+
* @summary Transfer Between Subaccounts
|
|
531
|
+
* @param {ApplySubaccountTransferRequest} applySubaccountTransferRequest
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
async applySubaccountTransfer(applySubaccountTransferRequest: ApplySubaccountTransferRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.applySubaccountTransfer(applySubaccountTransferRequest, options);
|
|
537
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
538
|
+
const localVarOperationServerBasePath: string | undefined = undefined;
|
|
539
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
540
|
+
},
|
|
541
|
+
/**
|
|
542
|
+
* Creates a new subaccount for the authenticated user. Subaccounts are numbered sequentially starting from 1. Maximum 32 subaccounts per user.
|
|
543
|
+
* @summary Create Subaccount
|
|
544
|
+
* @param {*} [options] Override http request option.
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
*/
|
|
547
|
+
async createSubaccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSubaccountResponse>> {
|
|
548
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSubaccount(options);
|
|
549
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
550
|
+
const localVarOperationServerBasePath: string | undefined = undefined;
|
|
551
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
552
|
+
},
|
|
553
|
+
/**
|
|
554
|
+
* Endpoint for getting the balance and portfolio value of a member. Both values are returned in cents.
|
|
555
|
+
* @summary Get Balance
|
|
556
|
+
* @param {*} [options] Override http request option.
|
|
557
|
+
* @throws {RequiredError}
|
|
558
|
+
*/
|
|
559
|
+
async getBalance(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBalanceResponse>> {
|
|
560
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBalance(options);
|
|
561
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
562
|
+
const localVarOperationServerBasePath: string | undefined = undefined;
|
|
563
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
564
|
+
},
|
|
565
|
+
/**
|
|
566
|
+
* Endpoint for getting all fills for the member. A fill is when a trade you have is matched.
|
|
567
|
+
* @summary Get Fills
|
|
568
|
+
* @param {string} [ticker] Filter by market ticker
|
|
569
|
+
* @param {string} [orderId] Filter by order ID
|
|
570
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
571
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
572
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
573
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
574
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
575
|
+
* @param {*} [options] Override http request option.
|
|
576
|
+
* @throws {RequiredError}
|
|
577
|
+
*/
|
|
578
|
+
async getFills(ticker?: string, orderId?: string, minTs?: number, maxTs?: number, limit?: number, cursor?: string, subaccount?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFillsResponse>> {
|
|
579
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFills(ticker, orderId, minTs, maxTs, limit, cursor, subaccount, options);
|
|
580
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
581
|
+
const localVarOperationServerBasePath: string | undefined = undefined;
|
|
582
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
583
|
+
},
|
|
584
|
+
/**
|
|
585
|
+
* Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you.
|
|
586
|
+
* @summary Get Total Resting Order Value
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
*/
|
|
590
|
+
async getPortfolioRestingOrderTotalValue(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPortfolioRestingOrderTotalValueResponse>> {
|
|
591
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPortfolioRestingOrderTotalValue(options);
|
|
592
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
593
|
+
const localVarOperationServerBasePath: string | undefined = undefined;
|
|
594
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
595
|
+
},
|
|
596
|
+
/**
|
|
597
|
+
* Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted: position, total_traded
|
|
598
|
+
* @summary Get Positions
|
|
599
|
+
* @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page.
|
|
600
|
+
* @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100.
|
|
601
|
+
* @param {string} [countFilter] Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted - position, total_traded
|
|
602
|
+
* @param {string} [ticker] Filter by market ticker
|
|
603
|
+
* @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
|
|
604
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
605
|
+
* @param {*} [options] Override http request option.
|
|
606
|
+
* @throws {RequiredError}
|
|
607
|
+
*/
|
|
608
|
+
async getPositions(cursor?: string, limit?: number, countFilter?: string, ticker?: string, eventTicker?: string, subaccount?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPositionsResponse>> {
|
|
609
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPositions(cursor, limit, countFilter, ticker, eventTicker, subaccount, options);
|
|
610
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
611
|
+
const localVarOperationServerBasePath: string | undefined = undefined;
|
|
612
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
613
|
+
},
|
|
614
|
+
/**
|
|
615
|
+
* Endpoint for getting the member\'s settlements historical track.
|
|
616
|
+
* @summary Get Settlements
|
|
617
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
618
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
619
|
+
* @param {string} [ticker] Filter by market ticker
|
|
620
|
+
* @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
|
|
621
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
622
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
623
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
*/
|
|
627
|
+
async getSettlements(limit?: number, cursor?: string, ticker?: string, eventTicker?: string, minTs?: number, maxTs?: number, subaccount?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettlementsResponse>> {
|
|
628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, subaccount, options);
|
|
629
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
630
|
+
const localVarOperationServerBasePath: string | undefined = undefined;
|
|
631
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
632
|
+
},
|
|
633
|
+
/**
|
|
634
|
+
* Gets balances for all subaccounts including the primary account.
|
|
635
|
+
* @summary Get All Subaccount Balances
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
*/
|
|
639
|
+
async getSubaccountBalances(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubaccountBalancesResponse>> {
|
|
640
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSubaccountBalances(options);
|
|
641
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
642
|
+
const localVarOperationServerBasePath: string | undefined = undefined;
|
|
643
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
644
|
+
},
|
|
645
|
+
/**
|
|
646
|
+
* Gets a paginated list of all transfers between subaccounts for the authenticated user.
|
|
647
|
+
* @summary Get Subaccount Transfers
|
|
648
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
649
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
650
|
+
* @param {*} [options] Override http request option.
|
|
651
|
+
* @throws {RequiredError}
|
|
652
|
+
*/
|
|
653
|
+
async getSubaccountTransfers(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubaccountTransfersResponse>> {
|
|
654
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSubaccountTransfers(limit, cursor, options);
|
|
655
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
656
|
+
const localVarOperationServerBasePath: string | undefined = undefined;
|
|
657
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
658
|
+
},
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* PortfolioApi - factory interface
|
|
664
|
+
*/
|
|
665
|
+
export const PortfolioApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
666
|
+
const localVarFp = PortfolioApiFp(configuration)
|
|
667
|
+
return {
|
|
668
|
+
/**
|
|
669
|
+
* Transfers funds between the authenticated user\'s subaccounts. Use 0 for the primary account, or 1-32 for numbered subaccounts.
|
|
670
|
+
* @summary Transfer Between Subaccounts
|
|
671
|
+
* @param {ApplySubaccountTransferRequest} applySubaccountTransferRequest
|
|
672
|
+
* @param {*} [options] Override http request option.
|
|
673
|
+
* @throws {RequiredError}
|
|
674
|
+
*/
|
|
675
|
+
applySubaccountTransfer(applySubaccountTransferRequest: ApplySubaccountTransferRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
676
|
+
return localVarFp.applySubaccountTransfer(applySubaccountTransferRequest, options).then((request) => request(axios, basePath));
|
|
677
|
+
},
|
|
678
|
+
/**
|
|
679
|
+
* Creates a new subaccount for the authenticated user. Subaccounts are numbered sequentially starting from 1. Maximum 32 subaccounts per user.
|
|
680
|
+
* @summary Create Subaccount
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
createSubaccount(options?: RawAxiosRequestConfig): AxiosPromise<CreateSubaccountResponse> {
|
|
685
|
+
return localVarFp.createSubaccount(options).then((request) => request(axios, basePath));
|
|
686
|
+
},
|
|
687
|
+
/**
|
|
688
|
+
* Endpoint for getting the balance and portfolio value of a member. Both values are returned in cents.
|
|
689
|
+
* @summary Get Balance
|
|
690
|
+
* @param {*} [options] Override http request option.
|
|
691
|
+
* @throws {RequiredError}
|
|
692
|
+
*/
|
|
693
|
+
getBalance(options?: RawAxiosRequestConfig): AxiosPromise<GetBalanceResponse> {
|
|
694
|
+
return localVarFp.getBalance(options).then((request) => request(axios, basePath));
|
|
695
|
+
},
|
|
696
|
+
/**
|
|
697
|
+
* Endpoint for getting all fills for the member. A fill is when a trade you have is matched.
|
|
698
|
+
* @summary Get Fills
|
|
699
|
+
* @param {string} [ticker] Filter by market ticker
|
|
700
|
+
* @param {string} [orderId] Filter by order ID
|
|
701
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
702
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
703
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
704
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
705
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
706
|
+
* @param {*} [options] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
*/
|
|
709
|
+
getFills(ticker?: string, orderId?: string, minTs?: number, maxTs?: number, limit?: number, cursor?: string, subaccount?: number, options?: RawAxiosRequestConfig): AxiosPromise<GetFillsResponse> {
|
|
710
|
+
return localVarFp.getFills(ticker, orderId, minTs, maxTs, limit, cursor, subaccount, options).then((request) => request(axios, basePath));
|
|
711
|
+
},
|
|
712
|
+
/**
|
|
713
|
+
* Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you.
|
|
714
|
+
* @summary Get Total Resting Order Value
|
|
715
|
+
* @param {*} [options] Override http request option.
|
|
716
|
+
* @throws {RequiredError}
|
|
717
|
+
*/
|
|
718
|
+
getPortfolioRestingOrderTotalValue(options?: RawAxiosRequestConfig): AxiosPromise<GetPortfolioRestingOrderTotalValueResponse> {
|
|
719
|
+
return localVarFp.getPortfolioRestingOrderTotalValue(options).then((request) => request(axios, basePath));
|
|
720
|
+
},
|
|
721
|
+
/**
|
|
722
|
+
* Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted: position, total_traded
|
|
723
|
+
* @summary Get Positions
|
|
724
|
+
* @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page.
|
|
725
|
+
* @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100.
|
|
726
|
+
* @param {string} [countFilter] Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted - position, total_traded
|
|
727
|
+
* @param {string} [ticker] Filter by market ticker
|
|
728
|
+
* @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
|
|
729
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
730
|
+
* @param {*} [options] Override http request option.
|
|
731
|
+
* @throws {RequiredError}
|
|
732
|
+
*/
|
|
733
|
+
getPositions(cursor?: string, limit?: number, countFilter?: string, ticker?: string, eventTicker?: string, subaccount?: number, options?: RawAxiosRequestConfig): AxiosPromise<GetPositionsResponse> {
|
|
734
|
+
return localVarFp.getPositions(cursor, limit, countFilter, ticker, eventTicker, subaccount, options).then((request) => request(axios, basePath));
|
|
735
|
+
},
|
|
736
|
+
/**
|
|
737
|
+
* Endpoint for getting the member\'s settlements historical track.
|
|
738
|
+
* @summary Get Settlements
|
|
739
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
740
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
741
|
+
* @param {string} [ticker] Filter by market ticker
|
|
742
|
+
* @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
|
|
743
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
744
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
745
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
*/
|
|
749
|
+
getSettlements(limit?: number, cursor?: string, ticker?: string, eventTicker?: string, minTs?: number, maxTs?: number, subaccount?: number, options?: RawAxiosRequestConfig): AxiosPromise<GetSettlementsResponse> {
|
|
750
|
+
return localVarFp.getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, subaccount, options).then((request) => request(axios, basePath));
|
|
751
|
+
},
|
|
752
|
+
/**
|
|
753
|
+
* Gets balances for all subaccounts including the primary account.
|
|
754
|
+
* @summary Get All Subaccount Balances
|
|
755
|
+
* @param {*} [options] Override http request option.
|
|
756
|
+
* @throws {RequiredError}
|
|
757
|
+
*/
|
|
758
|
+
getSubaccountBalances(options?: RawAxiosRequestConfig): AxiosPromise<GetSubaccountBalancesResponse> {
|
|
759
|
+
return localVarFp.getSubaccountBalances(options).then((request) => request(axios, basePath));
|
|
760
|
+
},
|
|
761
|
+
/**
|
|
762
|
+
* Gets a paginated list of all transfers between subaccounts for the authenticated user.
|
|
763
|
+
* @summary Get Subaccount Transfers
|
|
764
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
765
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
*/
|
|
769
|
+
getSubaccountTransfers(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetSubaccountTransfersResponse> {
|
|
770
|
+
return localVarFp.getSubaccountTransfers(limit, cursor, options).then((request) => request(axios, basePath));
|
|
771
|
+
},
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* PortfolioApi - object-oriented interface
|
|
777
|
+
*/
|
|
778
|
+
export class PortfolioApi extends BaseAPI {
|
|
779
|
+
/**
|
|
780
|
+
* Transfers funds between the authenticated user\'s subaccounts. Use 0 for the primary account, or 1-32 for numbered subaccounts.
|
|
781
|
+
* @summary Transfer Between Subaccounts
|
|
782
|
+
* @param {ApplySubaccountTransferRequest} applySubaccountTransferRequest
|
|
783
|
+
* @param {*} [options] Override http request option.
|
|
784
|
+
* @throws {RequiredError}
|
|
785
|
+
*/
|
|
786
|
+
public applySubaccountTransfer(applySubaccountTransferRequest: ApplySubaccountTransferRequest, options?: RawAxiosRequestConfig) {
|
|
787
|
+
return PortfolioApiFp(this.configuration).applySubaccountTransfer(applySubaccountTransferRequest, options).then((request) => request(this.axios, this.basePath));
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Creates a new subaccount for the authenticated user. Subaccounts are numbered sequentially starting from 1. Maximum 32 subaccounts per user.
|
|
792
|
+
* @summary Create Subaccount
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
public createSubaccount(options?: RawAxiosRequestConfig) {
|
|
797
|
+
return PortfolioApiFp(this.configuration).createSubaccount(options).then((request) => request(this.axios, this.basePath));
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Endpoint for getting the balance and portfolio value of a member. Both values are returned in cents.
|
|
802
|
+
* @summary Get Balance
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
*/
|
|
806
|
+
public getBalance(options?: RawAxiosRequestConfig) {
|
|
807
|
+
return PortfolioApiFp(this.configuration).getBalance(options).then((request) => request(this.axios, this.basePath));
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Endpoint for getting all fills for the member. A fill is when a trade you have is matched.
|
|
812
|
+
* @summary Get Fills
|
|
813
|
+
* @param {string} [ticker] Filter by market ticker
|
|
814
|
+
* @param {string} [orderId] Filter by order ID
|
|
815
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
816
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
817
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
818
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
819
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
820
|
+
* @param {*} [options] Override http request option.
|
|
821
|
+
* @throws {RequiredError}
|
|
822
|
+
*/
|
|
823
|
+
public getFills(ticker?: string, orderId?: string, minTs?: number, maxTs?: number, limit?: number, cursor?: string, subaccount?: number, options?: RawAxiosRequestConfig) {
|
|
824
|
+
return PortfolioApiFp(this.configuration).getFills(ticker, orderId, minTs, maxTs, limit, cursor, subaccount, options).then((request) => request(this.axios, this.basePath));
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you.
|
|
829
|
+
* @summary Get Total Resting Order Value
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
*/
|
|
833
|
+
public getPortfolioRestingOrderTotalValue(options?: RawAxiosRequestConfig) {
|
|
834
|
+
return PortfolioApiFp(this.configuration).getPortfolioRestingOrderTotalValue(options).then((request) => request(this.axios, this.basePath));
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted: position, total_traded
|
|
839
|
+
* @summary Get Positions
|
|
840
|
+
* @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page.
|
|
841
|
+
* @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100.
|
|
842
|
+
* @param {string} [countFilter] Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted - position, total_traded
|
|
843
|
+
* @param {string} [ticker] Filter by market ticker
|
|
844
|
+
* @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
|
|
845
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
*/
|
|
849
|
+
public getPositions(cursor?: string, limit?: number, countFilter?: string, ticker?: string, eventTicker?: string, subaccount?: number, options?: RawAxiosRequestConfig) {
|
|
850
|
+
return PortfolioApiFp(this.configuration).getPositions(cursor, limit, countFilter, ticker, eventTicker, subaccount, options).then((request) => request(this.axios, this.basePath));
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Endpoint for getting the member\'s settlements historical track.
|
|
855
|
+
* @summary Get Settlements
|
|
856
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
857
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
858
|
+
* @param {string} [ticker] Filter by market ticker
|
|
859
|
+
* @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
|
|
860
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
861
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
862
|
+
* @param {number} [subaccount] Subaccount number (0 for primary, 1-32 for subaccounts). If omitted, returns results across all subaccounts.
|
|
863
|
+
* @param {*} [options] Override http request option.
|
|
864
|
+
* @throws {RequiredError}
|
|
865
|
+
*/
|
|
866
|
+
public getSettlements(limit?: number, cursor?: string, ticker?: string, eventTicker?: string, minTs?: number, maxTs?: number, subaccount?: number, options?: RawAxiosRequestConfig) {
|
|
867
|
+
return PortfolioApiFp(this.configuration).getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, subaccount, options).then((request) => request(this.axios, this.basePath));
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Gets balances for all subaccounts including the primary account.
|
|
872
|
+
* @summary Get All Subaccount Balances
|
|
873
|
+
* @param {*} [options] Override http request option.
|
|
874
|
+
* @throws {RequiredError}
|
|
875
|
+
*/
|
|
876
|
+
public getSubaccountBalances(options?: RawAxiosRequestConfig) {
|
|
877
|
+
return PortfolioApiFp(this.configuration).getSubaccountBalances(options).then((request) => request(this.axios, this.basePath));
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* Gets a paginated list of all transfers between subaccounts for the authenticated user.
|
|
882
|
+
* @summary Get Subaccount Transfers
|
|
883
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
884
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
885
|
+
* @param {*} [options] Override http request option.
|
|
886
|
+
* @throws {RequiredError}
|
|
887
|
+
*/
|
|
888
|
+
public getSubaccountTransfers(limit?: number, cursor?: string, options?: RawAxiosRequestConfig) {
|
|
889
|
+
return PortfolioApiFp(this.configuration).getSubaccountTransfers(limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
|