@fullstackcraftllc/floe 0.0.7 → 0.0.8
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,6 +4,8 @@ import { NormalizedOption, NormalizedTicker } from "../types";
|
|
|
4
4
|
* @enum {string}
|
|
5
5
|
*/
|
|
6
6
|
export declare enum Broker {
|
|
7
|
+
/** Placeholder for no currently connected broker */
|
|
8
|
+
NONE = "none",
|
|
7
9
|
/** Tradier brokerage API */
|
|
8
10
|
TRADIER = "tradier",
|
|
9
11
|
/** TastyTrade brokerage API (uses DxLink WebSocket) */
|
|
@@ -11,6 +11,8 @@ const SchwabClient_1 = require("./brokers/SchwabClient");
|
|
|
11
11
|
*/
|
|
12
12
|
var Broker;
|
|
13
13
|
(function (Broker) {
|
|
14
|
+
/** Placeholder for no currently connected broker */
|
|
15
|
+
Broker["NONE"] = "none";
|
|
14
16
|
/** Tradier brokerage API */
|
|
15
17
|
Broker["TRADIER"] = "tradier";
|
|
16
18
|
/** TastyTrade brokerage API (uses DxLink WebSocket) */
|
|
@@ -121,6 +123,9 @@ class FloeClient {
|
|
|
121
123
|
this.currentBroker = broker;
|
|
122
124
|
// Connection logic to the broker's API using the authToken
|
|
123
125
|
switch (broker.toLowerCase()) {
|
|
126
|
+
case Broker.NONE:
|
|
127
|
+
// No action needed for NONE broker; no-op
|
|
128
|
+
break;
|
|
124
129
|
case Broker.TRADIER:
|
|
125
130
|
this.tradierClient = new TradierClient_1.TradierClient(authToken, { verbose: this.verbose });
|
|
126
131
|
// Wire up TradierClient events to FloeClient events
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstackcraftllc/floe",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Production-ready options analytics toolkit. Normalize broker data structures and calculate Black-Scholes, Greeks, and exposures with a clean, type-safe API. Built for trading platforms and fintech applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|