Skip to content

Get Flexi Order

get_flexi_order() returns flexi basket orders for the day and can optionally filter them by tag.

LLM guidance

Use this page to fetch flexi basket state and basket-level execution details, optionally filtered by tag. Do not use this page for normal single-order lookup. For standard orders, use Get Orders.

Basic Usage

from nubra_python_sdk.start_sdk import InitNubraSdk, NubraEnv
from nubra_python_sdk.trading.trading_data import NubraTrader

nubra = InitNubraSdk(NubraEnv.UAT, env_creds=True)
trader = NubraTrader(nubra, version="V2")

all_baskets = trader.get_flexi_order()
tagged_baskets = trader.get_flexi_order(tag="flexi_example")
print(all_baskets)

Request Contract

Field Type Required Meaning
tag str no optional basket tag filter

Response Contract

get_flexi_order() returns a list-like basket model. Each basket can include:

  • basket_id
  • basket_name
  • tag
  • orders
  • basket_params
  • last_traded_price
  • pnl
  • pnl_change

Important Rules

Important Rules

  • This method returns flexi baskets, not single orders.
  • Use tags consistently if your workflow depends on filtered basket retrieval.
  • Basket IDs and order identifiers are environment-specific.
  1. Place Flexi Order
  2. Modify Flexi Order
  3. Cancel Flexi Order
NEO Assistant