CS2Cap market data API client
Project description
cs2cap
CS2Cap aggregates and analyzes Counter-Strike 2 marketplace data across multiple providers via a unified REST API.
Requirements.
Python 3.9+
Installation
pip install cs2cap
Then import the package:
import cs2cap
Getting Started
Please follow the installation procedure and then run the following:
import cs2cap
from cs2cap.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.cs2c.app
# See configuration.py for a list of all supported configuration parameters.
configuration = cs2cap.Configuration(
host = "https://api.cs2c.app"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: BearerAuth
configuration = cs2cap.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with cs2cap.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cs2cap.AccountAPIKeysApi(api_client)
child_api_key_create_request = cs2cap.ChildAPIKeyCreateRequest() # ChildAPIKeyCreateRequest |
try:
# Create Sub Key
api_response = api_instance.create_sub_key(child_api_key_create_request)
print("The response of AccountAPIKeysApi->create_sub_key:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountAPIKeysApi->create_sub_key: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.cs2c.app
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountAPIKeysApi | create_sub_key | POST /v1/account/sub-keys | Create Sub Key |
| AccountAPIKeysApi | delete_sub_key | DELETE /v1/account/sub-keys/{key_id} | Delete Sub Key |
| AccountAPIKeysApi | get_sub_key | GET /v1/account/sub-keys/{key_id} | Get Sub Key |
| AccountAPIKeysApi | list_sub_keys | GET /v1/account/sub-keys | List Sub Keys |
| AccountAPIKeysApi | reissue_sub_key | POST /v1/account/sub-keys/{key_id}/reissue | Reissue Sub Key |
| AccountAPIKeysApi | update_sub_key | PATCH /v1/account/sub-keys/{key_id} | Update Sub Key |
| AccountAlertsApi | create_alert | POST /v1/account/alerts | Create Alert |
| AccountAlertsApi | create_alerts_batch | POST /v1/account/alerts/batch | Create Alerts Batch |
| AccountAlertsApi | delete_alert | DELETE /v1/account/alerts/{alert_id} | Delete Alert |
| AccountAlertsApi | list_alert_events | GET /v1/account/alerts/events | List Alert Events |
| AccountAlertsApi | list_alerts | GET /v1/account/alerts | List Alerts |
| AccountAlertsApi | update_alert | PATCH /v1/account/alerts/{alert_id} | Update Alert |
| AccountWatchlistApi | create_watchlist_entries | POST /v1/account/watchlist | Create Watchlist Entries |
| AccountWatchlistApi | delete_watchlist_entry | DELETE /v1/account/watchlist/{item_id} | Delete Watchlist Entry |
| AccountWatchlistApi | list_watchlist | GET /v1/account/watchlist | List Watchlist |
| AccountWebhooksApi | create_webhook | POST /v1/account/webhooks | Create Webhook |
| AccountWebhooksApi | delete_webhook | DELETE /v1/account/webhooks/{webhook_id} | Delete Webhook |
| AccountWebhooksApi | get_webhook_delivery | GET /v1/account/webhooks/deliveries/{delivery_id} | Get Webhook Delivery |
| AccountWebhooksApi | list_webhook_deliveries | GET /v1/account/webhooks/deliveries | List Webhook Deliveries |
| AccountWebhooksApi | list_webhooks | GET /v1/account/webhooks | List Webhooks |
| AccountWebhooksApi | rotate_webhook_secret | POST /v1/account/webhooks/{webhook_id}/rotate-secret | Rotate Webhook Secret |
| AccountWebhooksApi | update_webhook | PATCH /v1/account/webhooks/{webhook_id} | Update Webhook |
| BidsApi | batch_bid_lookup | POST /v1/bids/batch | Batch Bid Lookup |
| BidsApi | list_bids | GET /v1/bids | List Bids |
| BidsApi | stream_full_bids_snapshot | POST /v1/bids | Stream Full Bids Snapshot |
| ForeignExchangeApi | get_fx_rates | GET /v1/fx | Get Fx Rates |
| InventoryApi | fetch_steam_inventory | GET /v1/inventory/steam | Fetch Steam Inventory |
| InventoryApi | fetch_steam_inventory_by_steam_id | GET /v1/inventory/steam/lookup | Fetch Steam Inventory by Steam ID |
| ItemsApi | get_item_catalog_metadata | GET /v1/items/metadata | Get Item Catalog Metadata |
| ItemsApi | list_items | GET /v1/items | List Items |
| MarketIntelligenceApi | get_arbitrage_opportunities | GET /v1/market/arbitrage | Get Arbitrage Opportunities |
| MarketIntelligenceApi | get_indicators | GET /v1/market/indicators | Get Indicators |
| MarketIntelligenceApi | get_item_analytics | GET /v1/market/items/{item_id} | Get Item Analytics |
| MarketIntelligenceApi | get_market_analytics_snapshot | GET /v1/market/items | Get Market Analytics Snapshot |
| MarketIntelligenceApi | get_market_cap_indexes | GET /v1/market/indexes | Get Market Cap Indexes |
| PortfolioApi | add_item_to_portfolio | POST /v1/portfolio/{portfolio_id}/items | Add Item to Portfolio |
| PortfolioApi | add_transaction | POST /v1/portfolio/{portfolio_id}/transactions | Add Transaction |
| PortfolioApi | create_portfolio | POST /v1/portfolio | Create Portfolio |
| PortfolioApi | delete_portfolio | DELETE /v1/portfolio/{portfolio_id} | Delete Portfolio |
| PortfolioApi | delete_transaction | DELETE /v1/portfolio/{portfolio_id}/transactions/{transaction_id} | Delete Transaction |
| PortfolioApi | historical_saved_portfolio_valuation | GET /v1/portfolio/{portfolio_id}/history | Historical Saved Portfolio Valuation |
| PortfolioApi | import_steam_inventory | POST /v1/portfolio/{portfolio_id}/import | Import Steam Inventory |
| PortfolioApi | list_portfolio_items | GET /v1/portfolio/{portfolio_id}/items | List Portfolio Items |
| PortfolioApi | list_portfolios | GET /v1/portfolio | List Portfolios |
| PortfolioApi | list_transactions | GET /v1/portfolio/{portfolio_id}/transactions | List Transactions |
| PortfolioApi | portfolio_valuation | POST /v1/portfolio/value | Portfolio Valuation |
| PortfolioApi | remove_item_from_portfolio | DELETE /v1/portfolio/{portfolio_id}/items/{entry_id} | Remove Item from Portfolio |
| PortfolioApi | update_transaction | PATCH /v1/portfolio/{portfolio_id}/transactions/{transaction_id} | Update Transaction |
| PortfolioApi | value_saved_portfolio | GET /v1/portfolio/{portfolio_id}/value | Value Saved Portfolio |
| PricesApi | batch_price_lookup | POST /v1/prices/batch | Batch Price Lookup |
| PricesApi | list_prices | GET /v1/prices | List Prices |
| PricesApi | price_candles | GET /v1/prices/candles | Price Candles |
| PricesApi | price_history | GET /v1/prices/history | Price History |
| PricesApi | stream_full_prices_snapshot | POST /v1/prices | Stream Full Prices Snapshot |
| ProvidersApi | list_providers | GET /v1/providers | List Providers |
| SalesApi | list_recent_sales | GET /v1/sales | List Recent Sales |
Documentation For Models
- APIKeyInfo
- AccountMutationResponse
- AlertBatchCreateRequest
- AlertBatchCreateResponse
- AlertBatchCreateResult
- AlertCreateRequest
- AlertDefinition
- AlertDeliverySummary
- AlertEventSummary
- AlertEventsResponse
- AlertItemSummary
- AlertListResponse
- AlertUpdateRequest
- AllProviders
- BatchBidItem
- BatchBidQuote
- BatchBidsMeta
- BatchBidsRequest
- BatchBidsResponse
- BatchPriceItem
- BatchPriceQuote
- BatchPricesMeta
- BatchPricesRequest
- BatchPricesResponse
- BidsFilterMeta
- BidsMeta
- BidsResponse
- BuyOrderItem
- BuyOrderProvider
- CharmInfo
- ChildAPIKeyCreateRequest
- ChildAPIKeyCreateResponse
- ChildAPIKeyDetailResponse
- ChildAPIKeyListResponse
- ChildAPIKeyUpdateRequest
- CursorPaginationMeta
- ErrorResponse
- FXRatesResponse
- IndicatorDataCoverage
- IndicatorMomentum
- IndicatorSignals
- IndicatorVolatility
- IndicatorVolume
- InspectInfo
- ItemOut
- ItemsCatalogSummary
- ItemsFilterMetadata
- ItemsMetadataResponse
- ItemsPaginatedResponseItemOut
- ItemsPaginationMeta
- LocInner
- MarketArbitrageData
- MarketArbitrageItem
- MarketArbitrageMeta
- MarketArbitrageResponse
- MarketIndexGroup
- MarketIndexesData
- MarketIndexesMeta
- MarketIndexesResponse
- MarketIndicatorsItemData
- MarketIndicatorsItemResponse
- MarketIndicatorsMeta
- MarketItem
- MarketItemAnalyticsCoverage
- MarketItemAnalyticsData
- MarketItemAnalyticsProvider
- MarketItemAnalyticsResponse
- MarketItemAnalyticsSummary
- MarketItemsSnapshotData
- MarketItemsSnapshotItem
- MarketItemsSnapshotResponse
- MarketMeta
- MarketTimeWindowMeta
- PaginationMeta
- PhaseName
- PortfolioAddItemRequest
- PortfolioCreate
- PortfolioData
- PortfolioHistoryMeta
- PortfolioHistoryPage
- PortfolioHistoryPoint
- PortfolioImportRequest
- PortfolioImportResult
- PortfolioItemOut
- PortfolioLineItem
- PortfolioListResponse
- PortfolioMeta
- PortfolioOut
- PortfolioRequest
- PortfolioRequestItem
- PortfolioResponse
- PriceCandleItem
- PriceCandlesMeta
- PriceCandlesPage
- PriceHistoryFiltersMeta
- PriceHistoryMeta
- PriceSnapshot
- PriceSnapshotPage
- PricesFilterMeta
- PricesMeta
- PricesPaginatedResponseMarketItem
- ProviderFeatures
- ProviderFees
- ProviderHealth
- ProviderInfo
- Providers
- RecentSalesProvider
- SaleRecordDetail
- SalesFiltersMeta
- SalesHistoryResponse
- SalesMeta
- SteamInventoryItem
- SteamInventoryResponse
- StickerInfo
- TransactionCreateRequest
- TransactionOut
- TransactionUpdateRequest
- ValidationErrorItem
- ValidationErrorResponse
- WatchlistBatchCreateResponse
- WatchlistCreateBatchRequest
- WatchlistCreateRequest
- WatchlistCreateResponse
- WatchlistCreateSingleRequest
- WatchlistItem
- WatchlistResponse
- WebhookCreateRequest
- WebhookDeliveriesResponse
- WebhookDeliveryAttemptSummary
- WebhookDeliveryDetail
- WebhookDeliverySummary
- WebhookEndpointSummary
- WebhookEndpointsResponse
- WebhookSecretResponse
- WebhookUpdateRequest
Documentation For Authorization
Authentication schemes defined for the API:
BearerAuth
- Type: Bearer authentication
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cs2cap-1.0.2.tar.gz.
File metadata
- Download URL: cs2cap-1.0.2.tar.gz
- Upload date:
- Size: 128.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21b4ae2626eaee2658ec5cc3f1caab3bfe655bdcf5408a00d74dab11e6fb92f5
|
|
| MD5 |
4be2acf7b9259a4d0ff0f6e9d597a2cc
|
|
| BLAKE2b-256 |
67eed22295f6e4fc333ea5b70eac3f223e3cde772d33ab01511fffbdf744ad22
|
Provenance
The following attestation bundles were made for cs2cap-1.0.2.tar.gz:
Publisher:
publish.yml on CS2Cap/SDKs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cs2cap-1.0.2.tar.gz -
Subject digest:
21b4ae2626eaee2658ec5cc3f1caab3bfe655bdcf5408a00d74dab11e6fb92f5 - Sigstore transparency entry: 1409257261
- Sigstore integration time:
-
Permalink:
CS2Cap/SDKs@bb1b650401af3908a6ec237a4050cd1482bcbc34 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/CS2Cap
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bb1b650401af3908a6ec237a4050cd1482bcbc34 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cs2cap-1.0.2-py3-none-any.whl.
File metadata
- Download URL: cs2cap-1.0.2-py3-none-any.whl
- Upload date:
- Size: 289.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37d77523e31600350b81dc6cd2ff4d48715ff60225db60975c7d58813a83fe04
|
|
| MD5 |
eedb1cb5a57734025b2d0768d4655843
|
|
| BLAKE2b-256 |
934db39f729b94365dc935faa6e519b92ac3e915c6feeb9b58a881a66ab7d986
|
Provenance
The following attestation bundles were made for cs2cap-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on CS2Cap/SDKs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cs2cap-1.0.2-py3-none-any.whl -
Subject digest:
37d77523e31600350b81dc6cd2ff4d48715ff60225db60975c7d58813a83fe04 - Sigstore transparency entry: 1409257277
- Sigstore integration time:
-
Permalink:
CS2Cap/SDKs@bb1b650401af3908a6ec237a4050cd1482bcbc34 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/CS2Cap
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bb1b650401af3908a6ec237a4050cd1482bcbc34 -
Trigger Event:
push
-
Statement type: