@pipedream/alpaca 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ import { ConfigurationError } from "@pipedream/platform";
|
|
|
4
4
|
export default {
|
|
5
5
|
type: "action",
|
|
6
6
|
key: "alpaca-place-order",
|
|
7
|
-
version: "0.0
|
|
7
|
+
version: "0.1.0",
|
|
8
8
|
name: "Place Order",
|
|
9
9
|
description: "Places a new order for the given account. An order request may be rejected if the account is not authorized for trading, or if the tradable balance is insufficient to fill the order, [See the docs](https://alpaca.markets/docs/api-references/trading-api/orders/#request-a-new-order)",
|
|
10
10
|
props: {
|
|
@@ -87,6 +87,13 @@ export default {
|
|
|
87
87
|
description: "This or `trail_price` is required if type is `trailing_stop`",
|
|
88
88
|
optional: true,
|
|
89
89
|
},
|
|
90
|
+
extendedHours: {
|
|
91
|
+
type: "boolean",
|
|
92
|
+
label: "Extended Hours",
|
|
93
|
+
description: "If true, order will be eligible to execute in premarket/afterhours. Only works with `Type` **Limit** and `Time in Force` **Day**.",
|
|
94
|
+
optional: true,
|
|
95
|
+
default: false,
|
|
96
|
+
},
|
|
90
97
|
},
|
|
91
98
|
async run ({ $ }) {
|
|
92
99
|
if (!this.qty && !this.notional) {
|
|
@@ -118,6 +125,7 @@ export default {
|
|
|
118
125
|
stop_price: this.stopPrice,
|
|
119
126
|
trail_price: this.trailPrice,
|
|
120
127
|
trail_percent: this.trailPercent,
|
|
128
|
+
extended_hours: this.extendedHours,
|
|
121
129
|
},
|
|
122
130
|
});
|
|
123
131
|
$.export("$summary", `Order(ID:${response.id}) has been placed.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/alpaca",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Pipedream Alpaca Components",
|
|
5
5
|
"main": "alpaca.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"homepage": "https://pipedream.com/apps/alpaca",
|
|
11
11
|
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@pipedream/platform": "^1.
|
|
13
|
+
"@pipedream/platform": "^1.6.0"
|
|
14
14
|
},
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|