@investingwolf/alpaca-broker-api
Version:
Node.js client for alpaca broker API
104 lines (103 loc) • 2.36 kB
JavaScript
;
/**
* Alpaca Broker API
* Open brokerage accounts, enable commission-free trading, and manage the ongoing user experience with Alpaca Broker API
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Position = void 0;
class Position {
static getAttributeTypeMap() {
return Position.attributeTypeMap;
}
}
exports.Position = Position;
Position.discriminator = undefined;
Position.attributeTypeMap = [
{
"name": "asset_id",
"baseName": "asset_id",
"type": "string"
},
{
"name": "symbol",
"baseName": "symbol",
"type": "string"
},
{
"name": "exchange",
"baseName": "exchange",
"type": "string"
},
{
"name": "asset_class",
"baseName": "asset_class",
"type": "string"
},
{
"name": "avg_entry_price",
"baseName": "avg_entry_price",
"type": "string"
},
{
"name": "qty",
"baseName": "qty",
"type": "string"
},
{
"name": "side",
"baseName": "side",
"type": "string"
},
{
"name": "market_value",
"baseName": "market_value",
"type": "string"
},
{
"name": "cost_basis",
"baseName": "cost_basis",
"type": "string"
},
{
"name": "unrealized_pl",
"baseName": "unrealized_pl",
"type": "string"
},
{
"name": "unrealized_plpc",
"baseName": "unrealized_plpc",
"type": "string"
},
{
"name": "unrealized_intraday_pl",
"baseName": "unrealized_intraday_pl",
"type": "string"
},
{
"name": "unrealized_intraday_plpc",
"baseName": "unrealized_intraday_plpc",
"type": "string"
},
{
"name": "current_price",
"baseName": "current_price",
"type": "string"
},
{
"name": "lastday_price",
"baseName": "lastday_price",
"type": "string"
},
{
"name": "change_today",
"baseName": "change_today",
"type": "string"
}
];