@adaptic/utils 0.0.1012 → 0.0.1014
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.
- package/dist/index.cjs +698 -116
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +695 -117
- package/dist/index.mjs.map +1 -1
- package/dist/test.js +8 -0
- package/dist/test.js.map +1 -1
- package/dist/types/__tests__/alpaca-broker-error-preservation.test.d.ts +2 -0
- package/dist/types/__tests__/alpaca-broker-error-preservation.test.d.ts.map +1 -0
- package/dist/types/__tests__/metrics-calcs-direction.test.d.ts +2 -0
- package/dist/types/__tests__/metrics-calcs-direction.test.d.ts.map +1 -0
- package/dist/types/__tests__/protective-order-sides.test.d.ts +2 -0
- package/dist/types/__tests__/protective-order-sides.test.d.ts.map +1 -0
- package/dist/types/__tests__/technical-analysis-totality.test.d.ts +2 -0
- package/dist/types/__tests__/technical-analysis-totality.test.d.ts.map +1 -0
- package/dist/types/__tests__/trailing-stops-portfolio.test.d.ts +2 -0
- package/dist/types/__tests__/trailing-stops-portfolio.test.d.ts.map +1 -0
- package/dist/types/alpaca/index.d.ts +1 -1
- package/dist/types/alpaca/index.d.ts.map +1 -1
- package/dist/types/alpaca/legacy/orders.d.ts.map +1 -1
- package/dist/types/alpaca/trading/bracket-orders.d.ts +25 -3
- package/dist/types/alpaca/trading/bracket-orders.d.ts.map +1 -1
- package/dist/types/alpaca/trading/orders.d.ts.map +1 -1
- package/dist/types/alpaca/trading/oto-orders.d.ts +8 -2
- package/dist/types/alpaca/trading/oto-orders.d.ts.map +1 -1
- package/dist/types/alpaca/trading/trailing-stops.d.ts +6 -3
- package/dist/types/alpaca/trading/trailing-stops.d.ts.map +1 -1
- package/dist/types/alpaca-trading-api.d.ts.map +1 -1
- package/dist/types/asset-allocation-algorithm.d.ts.map +1 -1
- package/dist/types/errors/index.d.ts +149 -1
- package/dist/types/errors/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/metrics-calcs.d.ts +6 -0
- package/dist/types/metrics-calcs.d.ts.map +1 -1
- package/dist/types/schemas/massive-schemas.d.ts +6 -6
- package/dist/types/technical-analysis.d.ts +26 -1
- package/dist/types/technical-analysis.d.ts.map +1 -1
- package/dist/types/trading-policy/defaults/default-trading-policy.d.ts.map +1 -1
- package/dist/types/types/metrics-types.d.ts +8 -1
- package/dist/types/types/metrics-types.d.ts.map +1 -1
- package/dist/types/types/ta-types.d.ts +10 -1
- package/dist/types/types/ta-types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/test.js
CHANGED
|
@@ -8076,6 +8076,14 @@ const DEFAULT_TRADING_POLICY = EffectiveTradingPolicySchema.parse({
|
|
|
8076
8076
|
optionsEnabled: true,
|
|
8077
8077
|
futuresEnabled: true,
|
|
8078
8078
|
forexEnabled: true,
|
|
8079
|
+
// Shorting and margin are capability opt-ins, not a directional stance.
|
|
8080
|
+
// Both require a margin agreement and locate/borrow availability the
|
|
8081
|
+
// package cannot verify, so an account that has not asserted the
|
|
8082
|
+
// capability defaults to the one it is known to have. This is a statement
|
|
8083
|
+
// about account permissions, never a preference for long over short — the
|
|
8084
|
+
// side a strategy takes is derived from live data once the capability is
|
|
8085
|
+
// enabled. Resolve these from the broker account's actual margin and
|
|
8086
|
+
// shorting entitlements wherever those are available.
|
|
8079
8087
|
shortingEnabled: false,
|
|
8080
8088
|
marginEnabled: false,
|
|
8081
8089
|
fractionalSharesEnabled: true,
|