Releases: Brendan-Blanchard/kraken-async-rs
Releases · Brendan-Blanchard/kraken-async-rs
v0.6.0
v0.6.0
A breaking change to the KrakenClient
trait (adding a new method) to support tracing as a flag, rather than a build feature for increased flexibility and configuration at runtime for different clients (e.g. tracing orders but not orderbooks due to log volumes).
- Deprecate
debug-inbound
anddebug-outbound
features - Add
new_with_tracing
method toKrakenClient
to allow setting a flag for tracing inbound REST messages - Add
new_with_tracing
method toKrakenWSSClient
to allow setting a flag for tracing inbound websocket messages
v0.5.0
- Update to Spot REST V1, Spot Websockets V2.0.9 as of 26 September 2024 changelog notes
- Adds
cl_ord_id
(client_order_id) to many types - Adds AmendOrder endpoint, WS request/responses for amending orders, and updates to many request and response types
- Adds
get_order_amends
endpoint to retrieve amendments made to a particular order - Updated rate limiting to support amending orders and correcting their lifetimes for correct penalties
- Adds
- Bump various dependencies
- Fix
StatusUpdate.connection_id
after observing it's not always populated - Add test-support default feature for common example and testing code
- Added further deprecation notice to V1 Websockets, I plan to remove them in the next major release
v0.4.2
v0.4.2
- Fix
ExecutionResult
for trigger orders, whereactual_price
,peak_price
,last_price
, andtimestamp
are not
necessarily provided
v0.4.1
v0.4.1
- Fix parsing of
ExecutionResult
after addition of new fields - Fix
PositionStatusV2::Open
->Opened
- Add cl_ord_id (client_order_id) to
AddOrderResult
,CancelOrderResult
,BatchOrder
,BatchOrderParams
,
BatchCancelResponse
, andExecutionResult
v0.4.0
v0.4.0
- Update tokio-tungstenite to 0.23.1, update to fix breaking changes
- Fix serde and Display for SelfTradePrevention to be snake_case
- Bump various dependencies
v0.3.0
v0.3.0
- Add custom
Token(Secret<String>)
type for websocket tokens to avoid accidental exposure via logging etc- Feature-gated logging of incoming and outgoing messages to prevent disclosure of secrets by default
(seedebug-inbound
anddebug-outbound
features)
- Feature-gated logging of incoming and outgoing messages to prevent disclosure of secrets by default
- Add
Clone
to remaining response types, addCopy
where sensible - Modify
OpenPosition
to havenet
andvalue
be optional (return depends on query params)
v0.2.0
v0.2.0
Breaking changes requires to make API more ergonomic or fix existing bugs.
- Change
KrakenClient
signature to requiresecrets_provider: Box<Arc<Mutex<dyn SecretsProvider>>>,
to enableClone
onCoreKrakenClient
- Fix
BalancesSubscription
sending null for snapshot by default (skip_serializing_none) - Fix
WSSMessage
by addingWssMessage(ErrorResponse { .. })
variant - Change
checksum
fields for L2 and L3 books tou32
to match crc32fast crate impl - Derive Clone for
Message<T>
and all*Subscription
types - Derive
Clone
forRateLimitedKrakenClient
so clones can share the rate limiters - Derive
Debug
forCoreKrakenClient
for consistency - Make incoming WSS messages trace!(...) only; reduces logs with correct settings
- Make
ExecutionResult.order_user_ref
optional - Bump dependencies
v0.0.2
Using rust_decimal::Decimal instead of Strings where applicable. Bug fixes, cleanup, more enum usage, and other changes
from using downstream and finding what drove poor patterns, etc.
- Decimal conversions instead of String (settled on this due to abundance/annoyance of Decimal::try_from(&someString)?
- Made
KrakenClient.set_user_agent
async (not required but allows Tokio mutex proxying downstream) - Changed
vol
andvol_exec
tovolume
andvolume_executed
in all places - Added String data to several variants of
ClientError
where additional information is helpful downstream - Added From<...> impls for StringCSV, OrderFlags, and IntOrString
- These reduce things like
StringCSV::new(vec!["someTxId".to_string()])
to"someTxId".into()
- These reduce things like
- Added example of querying an order to /examples
- Updated dependencies, including
h2
for a security advisory, though it doesn't affect how it's used here - Add
err(Debug)
tracing to allCoreKrakenClient
methods - Add
ret
tracing to any small responses and all trading endpoints inCoreKrakenClient
- Add
Clone
to WSS un/subscribe message types - Add
Debug
,Clone
,Copy
toKrakenWSSClient
- Add
pub
to additional fields on structs in private and public WSS messages - Change
OpenOrder
WSS type to useOrderStatus
enum - Used
TriggerType
enum in additional places
v0.0.1
Initial version with complete API (excluding NFTs)