Bamboo Invest · Schema

StopOrderRequest

InvestmentsStocksFractional SharesAfricaNigeriaPortfolio ManagementBrokerageFintech

Properties

Name Type Description
order_type string Order type options: `MARKET`, `LIMIT`, `STOP`
symbol string Stock ticker symbol
side string BUY or SELL
price_per_share number Current price per share
price number Price at which the user wants their LIMIT or STOP orders to be executed
quantity number Specified quantity
sell_all boolean set to true if the user wants to sell_all the shares they have for the specified stock symbol.
View JSON Schema on GitHub

JSON Schema

stoporderrequest.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.investbamboo.com/schemas/StopOrderRequest",
  "title": "StopOrderRequest",
  "type": "object",
  "properties": {
    "order_type": {
      "type": "string",
      "description": "Order type options: `MARKET`, `LIMIT`, `STOP`",
      "enum": [
        "STOP"
      ]
    },
    "symbol": {
      "type": "string",
      "description": "Stock ticker symbol",
      "example": "AAPL"
    },
    "side": {
      "type": "string",
      "description": "BUY or SELL",
      "enum": [
        "buy",
        "sell"
      ]
    },
    "price_per_share": {
      "type": "number",
      "description": "Current price per share",
      "example": 9.13
    },
    "price": {
      "type": "number",
      "description": "Price at which the user wants their LIMIT or STOP orders to be executed",
      "example": 9.13
    },
    "quantity": {
      "type": "number",
      "description": "Specified quantity",
      "example": 100
    },
    "sell_all": {
      "type": "boolean",
      "description": "set to true if the user wants to sell_all the shares they have for the specified stock symbol.",
      "example": false
    }
  },
  "required": [
    "order_type",
    "symbol",
    "side",
    "price_per_share",
    "price",
    "quantity"
  ]
}