File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,24 @@ All notable changes to this project are documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 0.2.0]
9+
10+ ### Added
11+
12+ - ** ` Longbridge.QuoteContext.candlesticks_paginated/3 ` ** — fetch up to N
13+ K-line bars across multiple ` candlesticks/3 ` calls. Deduplicates by
14+ timestamp to avoid infinite loops when the API returns the same recent
15+ bars on every call (e.g. paper-trading accounts where the historical
16+ window is unavailable), and returns candles sorted oldest-first.
17+ Rate-limited by the SDK's connection-level throttle.
18+
19+ ### Fixed
20+
21+ - ** README ` Longbridge.TradeContext.cancel_order/2 ` example** — the
22+ install/quickstart snippet destructured the return as ` :ok ` ; the
23+ function's ` @spec ` returns ` {:ok, map()} ` . The snippet now pattern-
24+ matches the actual tuple shape.
25+
826## [ 0.1.2]
927
1028### Changed
@@ -119,6 +137,7 @@ The SDK is feature-complete against the upstream protocol for the pinned
119137- ` Longbridge.TradeContext ` : 95.9%.
120138- ` Longbridge.QuoteContext.RealtimeStore ` : 100%.
121139
140+ [ 0.2.0 ] : https://github.com/gilbertwong96/longbridge/compare/v0.1.2...v0.2.0
122141[ 0.1.2 ] : https://github.com/gilbertwong96/longbridge/compare/v0.1.1...v0.1.2
123142[ 0.1.1 ] : https://github.com/gilbertwong96/longbridge/compare/v0.1.0...v0.1.1
124143[ 0.1.0 ] : https://github.com/gilbertwong96/longbridge/releases/tag/v0.1.0
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Add `longbridge` to your `mix.exs`:
1919``` elixir
2020def deps do
2121 [
22- {:longbridge , " ~> 0.1.2 " }
22+ {:longbridge , " ~> 0.2.0 " }
2323 ]
2424end
2525```
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule Longbridge.MixProject do
44 def project do
55 [
66 app: :longbridge ,
7- version: "0.1.2 " ,
7+ version: "0.2.0 " ,
88 elixir: "~> 1.20" ,
99 start_permanent: Mix . env ( ) == :prod ,
1010 package: package ( ) ,
You can’t perform that action at this time.
0 commit comments