@master-chief/alpaca-ts
Version:
A TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams.
57 lines (56 loc) • 1.38 kB
TypeScript
import type { ActivityType } from "./ActivityType.js";
import type { OrderStatus } from "./OrderStatus.js";
export declare type TradingActivities = {
activity_type?: ActivityType;
/**
* An id for the activity. Always in “::” format. Can be sent as page_token in requests to facilitate the paging of results.
*/
id?: string;
/**
* The cumulative quantity of shares involved in the execution.
*/
cum_qty?: string;
/**
* For partially_filled orders, the quantity of shares that are left to be filled.
*
*/
leaves_qty?: string;
/**
* The per-share price that the trade was executed at.
*/
price?: string;
/**
* The number of shares involved in the trade execution.
*/
qty?: string;
/**
* buy or sell
*/
side?: string;
/**
* The symbol of the security being traded.
*/
symbol?: string;
/**
* The time at which the execution occurred.
*/
transaction_time?: string;
/**
* The id for the order that filled.
*/
order_id?: string;
/**
* fill or partial_fill
*/
type?: TradingActivities.type;
order_status?: OrderStatus;
};
export declare namespace TradingActivities {
/**
* fill or partial_fill
*/
enum type {
FILL = "fill",
PARTIAL_FILL = "partial_fill"
}
}