📉Stocks Usecases
Stocks limit, with price, with quantity
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "BUY",
"order_type": "LMT",
"enforce": "DAY",
"price": "0.02",
"quantity": 1
}
Stocks limit, without price, with quantity
placed at mid price: 169.135
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "BUY",
"order_type": "LMT",
"quantity": 1
}
Stocks limit, without price, without quantity
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "BUY",
"order_type": "LMT"
}
case 1 preference stocks_max_price not set gives error
case 2 mid price 169.135, preference max_price 425 (2.5x) bought 2 @ 169.14 each
Stocks market with quantity
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "BUY",
"order_type": "MKT",
"quantity": 1
}
Stocks market without quantity
mid price 169.135, preference max_price 425 (2.5x)
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "BUY",
"order_type": "MKT"
}
bought 2
Stocks Stop
case 1 without stop price
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "BUY",
"order_type": "STP"
}
gives error
case 2 with stop price
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "BUY",
"order_type": "STP",
"stop_price": "170"
}
Stocks Stop limit with stop, with limit, with quantity
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "BUY",
"order_type": "STP LMT",
"stop_price": "169.20",
"price": "169.21",
"quantity": "1"
}
Stocks Stop limit with stop, with limit, without quantity
preference max_stock_price: 425 (2.5x)
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "BUY",
"order_type": "STP LMT",
"stop_price": "170",
"price": "170"
}
quantity 2
Stocks close position limit with price
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "CLOSE",
"order_type": "LMT",
"price": "172"
}
Stocks close position limit without price
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "CLOSE",
"order_type": "LMT"
}
Stocks close position market
{
"password": "<<password>>",
"asset_type": "stocks",
"asset_name": "AAPL",
"action": "CLOSE",
"order_type": "MKT"
}
Last updated