longbridge
Advanced tools
Comparing version 0.2.43 to 0.2.44
@@ -646,2 +646,21 @@ /* tslint:disable */ | ||
} | ||
export class HttpClient { | ||
constructor(httpUrl: string, appKey: string, appSecret: string, accessToken: string) | ||
/** | ||
* Create a new `HttpClient` from the given environment variables | ||
* | ||
* It first gets the environment variables from the `.env` file in the | ||
* current directory. | ||
* | ||
* # Variables | ||
* | ||
* - `LONGBRIDGE_HTTP_URL` - HTTP endpoint url | ||
* - `LONGBRIDGE_APP_KEY` - App key | ||
* - `LONGBRIDGE_APP_SECRET` - App secret | ||
* - `LONGBRIDGE_ACCESS_TOKEN` - Access token | ||
*/ | ||
static fromEnv(): HttpClient | ||
/** Performs a HTTP request */ | ||
request(method: string, path: string, body?: any | undefined | null): Promise<any> | ||
} | ||
/** Quote context */ | ||
@@ -648,0 +667,0 @@ export class QuoteContext { |
@@ -239,6 +239,7 @@ const { existsSync, readFileSync } = require('fs') | ||
const { Config, Decimal, QuoteContext, PushQuoteEvent, PushDepthEvent, PushBrokersEvent, PushTradesEvent, PushCandlestickEvent, Subscription, DerivativeType, TradeStatus, TradeSession, SubType, TradeDirection, OptionType, OptionDirection, WarrantType, Period, AdjustType, SecurityBoard, SecurityStaticInfo, PrePostQuote, SecurityQuote, OptionQuote, WarrantQuote, Depth, SecurityDepth, Brokers, SecurityBrokers, ParticipantInfo, Trade, IntradayLine, Candlestick, StrikePriceInfo, IssuerInfo, TradingSessionInfo, MarketTradingSession, RealtimeQuote, PushQuote, PushDepth, PushBrokers, PushTrades, PushCandlestick, MarketTradingDays, CapitalFlowLine, CapitalDistribution, CapitalDistributionResponse, WatchListGroup, WatchListSecurity, NaiveDate, Time, TradeContext, TopicType, Execution, OrderStatus, OrderSide, OrderType, OrderTag, TimeInForceType, TriggerStatus, OutsideRTH, Order, PushOrderChanged, SubmitOrderResponse, CashInfo, AccountBalance, BalanceType, CashFlowDirection, CashFlow, FundPositionsResponse, FundPositionChannel, FundPosition, StockPositionsResponse, StockPositionChannel, StockPosition, MarginRatio, Market, Language } = nativeBinding | ||
const { Config, Decimal, HttpClient, QuoteContext, PushQuoteEvent, PushDepthEvent, PushBrokersEvent, PushTradesEvent, PushCandlestickEvent, Subscription, DerivativeType, TradeStatus, TradeSession, SubType, TradeDirection, OptionType, OptionDirection, WarrantType, Period, AdjustType, SecurityBoard, SecurityStaticInfo, PrePostQuote, SecurityQuote, OptionQuote, WarrantQuote, Depth, SecurityDepth, Brokers, SecurityBrokers, ParticipantInfo, Trade, IntradayLine, Candlestick, StrikePriceInfo, IssuerInfo, TradingSessionInfo, MarketTradingSession, RealtimeQuote, PushQuote, PushDepth, PushBrokers, PushTrades, PushCandlestick, MarketTradingDays, CapitalFlowLine, CapitalDistribution, CapitalDistributionResponse, WatchListGroup, WatchListSecurity, NaiveDate, Time, TradeContext, TopicType, Execution, OrderStatus, OrderSide, OrderType, OrderTag, TimeInForceType, TriggerStatus, OutsideRTH, Order, PushOrderChanged, SubmitOrderResponse, CashInfo, AccountBalance, BalanceType, CashFlowDirection, CashFlow, FundPositionsResponse, FundPositionChannel, FundPosition, StockPositionsResponse, StockPositionChannel, StockPosition, MarginRatio, Market, Language } = nativeBinding | ||
module.exports.Config = Config | ||
module.exports.Decimal = Decimal | ||
module.exports.HttpClient = HttpClient | ||
module.exports.QuoteContext = QuoteContext | ||
@@ -245,0 +246,0 @@ module.exports.PushQuoteEvent = PushQuoteEvent |
{ | ||
"name": "longbridge", | ||
"version": "0.2.43", | ||
"version": "0.2.44", | ||
"main": "index.js", | ||
@@ -35,7 +35,7 @@ "types": "index.d.ts", | ||
"optionalDependencies": { | ||
"longbridge-win32-x64-msvc": "0.2.43", | ||
"longbridge-darwin-x64": "0.2.43", | ||
"longbridge-linux-x64-gnu": "0.2.43", | ||
"longbridge-darwin-arm64": "0.2.43" | ||
"longbridge-win32-x64-msvc": "0.2.44", | ||
"longbridge-darwin-x64": "0.2.44", | ||
"longbridge-linux-x64-gnu": "0.2.44", | ||
"longbridge-darwin-arm64": "0.2.44" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71891
2566