from studio_sdk.types import (
BaseStrategy,
LocateOrder,
Order,
Position,
RegtMarginSimulation,
Strategy,
Trade,
)
Types:
from studio_sdk.types import Entity, PnlSummary, PortfolioMargin, RegtMargin, EntityListResponse
Methods:
client.entities.retrieve(entity_id) -> Entity
client.entities.list() -> EntityListResponse
Methods:
client.entities.pnl_summaries.retrieve(entity_id) -> PnlSummary
Methods:
client.entities.regt_margins.retrieve(entity_id) -> RegtMargin
Methods:
client.entities.portfolio_margins.retrieve(entity_id) -> PortfolioMargin
Types:
from studio_sdk.types.entities import SimulationID, RegtMarginSimulationCreateResponse
Methods:
client.entities.regt_margin_simulations.create(entity_id, **params) -> RegtMarginSimulationCreateResponse
client.entities.regt_margin_simulations.retrieve(simulation_id, *, entity_id) -> RegtMarginSimulation
Types:
from studio_sdk.types import Account, AccountListResponse
Methods:
client.accounts.retrieve(account_id) -> Account
client.accounts.list() -> AccountListResponse
Types:
from studio_sdk.types.accounts import BulkOrderCreateResponse
Methods:
client.accounts.bulk_orders.create(account_id, **params) -> BulkOrderCreateResponse
Types:
from studio_sdk.types.accounts import (
OrderCreateResponse,
OrderRetrieveResponse,
OrderListResponse,
OrderDeleteResponse,
)
Methods:
client.accounts.orders.create(account_id, **params) -> OrderCreateResponse
client.accounts.orders.retrieve(order_id, *, account_id) -> OrderRetrieveResponse
client.accounts.orders.list(account_id, **params) -> OrderListResponse
client.accounts.orders.delete(account_id, **params) -> OrderDeleteResponse
client.accounts.orders.cancel(order_id, *, account_id) -> None
client.accounts.orders.patch(order_id, *, account_id, **params) -> None
Types:
from studio_sdk.types.accounts import TradeListResponse
Methods:
client.accounts.trades.retrieve(trade_id, *, account_id) -> Trade
client.accounts.trades.list(account_id, **params) -> TradeListResponse
Types:
from studio_sdk.types.accounts import PositionListResponse
Methods:
client.accounts.positions.retrieve(symbol, *, account_id) -> Position
client.accounts.positions.list(account_id, **params) -> PositionListResponse
Types:
from studio_sdk.types.accounts import LocateOrderListResponse
Methods:
client.accounts.locate_orders.create(account_id, **params) -> LocateOrder
client.accounts.locate_orders.retrieve(locate_order_id, *, account_id) -> LocateOrder
client.accounts.locate_orders.update(locate_order_id, *, account_id, **params) -> None
client.accounts.locate_orders.list(account_id) -> LocateOrderListResponse
Types:
from studio_sdk.types.accounts import EasyBorrowListResponse
Methods:
client.accounts.easy_borrows.list(account_id) -> EasyBorrowListResponse
Methods:
client.accounts.pnl_summary.retrieve(account_id) -> PnlSummary
Types:
from studio_sdk.types.accounts import PnlDetailListResponse
Methods:
client.accounts.pnl_details.list(account_id) -> PnlDetailListResponse
Types:
from studio_sdk.types.accounts import PnlSumListResponse
Methods:
client.accounts.pnl_sums.list(account_id, **params) -> PnlSumListResponse
Types:
from studio_sdk.types.accounts import HoldingListResponse
Methods:
client.accounts.holdings.list(account_id, **params) -> HoldingListResponse
Types:
from studio_sdk.types.accounts import InventoryRetrieveResponse
Methods:
client.accounts.inventories.retrieve(symbol, *, account_id) -> InventoryRetrieveResponse
Types:
from studio_sdk.types import Instrument
Methods:
client.instruments.retrieve(symbol, **params) -> Instrument