- Added
gzipcompression support for transparent API response compression controlled by default enabledgzipfeature - Added support for subscribing to realtime trades
- Reworked symbols related types in
data::v2::streammodule - Added
classmember toapi::v2::order::Ordertype - Added
symbolsmember toapi::v2::orders::OrdersReqtype - Added
Deserializeimplementation for more types - Updated
ActivityTypeenum to be in sync with upstream variants - Made
api::v2::position::Positionexhaustive - Bumped
uuiddependency to1.0
- Made more types serializable/deserializable
- Renamed various
Trade*types toOrder* - Removed
#[non_exhaustive]attribute from various types
- Added support for subscribing to realtime quotes in addition to aggregate bar data
- Adjusted data API request types to include optional data feed to use
- Adjusted
data::v2::last_quote::Getto accept aLastQuoteReqobject - Added
Cryptovariant toapi::v2::asset::Classenum and made it non-exhaustive - Added
Otcvariant toapi::v2::asset::Exchangeenum and made it non-exhaustive - Introduced
api::v2::order::Status::is_terminalmethod - Replaced infallible
From<Into<String>>conversion forasset::Symbolwith fallibleTryFrom - Made members of
ApiInfopublicly accessible and added more URL members - Renamed various 422 HTTP status error variants to
InvalidInput - Changed various limit types to
usize - Changed
api::v2::orders::OrdersReq::limitto be anOption - Added example illustrating how to stream realtime market data
- Renamed
data::v2::bars::BarReqtoBarsReq- Deprecated
data::v2::bars::BarReq
- Deprecated
- Introduced
data::v2::bars::BarsReqInittype - Introduced
ApiInfo::into_partsmethod
- Adjusted
Subscribabletrait to make all created futures implementSend
- Added
api::v2::calendarmodule for retrieving historic and future market open and close times - Added support for historic quote retrieval via
data::v2::quotes
- Fixed JSON decoding error when no bars are returned in response to
data::v2::bars::Getrequest
- Added support for realtime market data streaming via
data::v2::stream::RealtimeData
- Reworked account update streaming support using a subscription based
design
- Renamed
api::v2::eventstoapi::v2::updates - Removed
eventmodule providing low-level access to update streaming
- Renamed
- Renamed
InsufficientFundsvariant ofapi::v2::order::PostErrorandapi::v2::order::PatchErrortoNotPermitted - Removed support for streaming account updates
- Removed
data::v2::stocksmodule alias - Switched from using
test-env-logtotest-log - Bumped minimum supported Rust version to
1.56 - Switched to using Rust 2021 Edition
- Added
async-traitdependency in version0.1.51 - Bumped
websocket-utildependency to0.10.1 - Bumped
tokio-tungstenitedependency to0.16
- Introduced support for retrieving the last quote for a symbol
- Aliased
data::v2::barsmodule todata::v2::stocks- Deprecated
data::v2::stocksmodule alias
- Deprecated
- Introduced support for historic data retrieval using v2 API
- Added bindings for watchlist management
- Added support for submitting notional orders
- Adjusted all quantities to be of type
Numto fully support trading with fractional quantities - Tagged more functions and methods as
#[inline] - Removed support for v1 historic data API
- Migrated most usages of
SystemTimedate times tochrono::DateTime - Added
Activity::timemethod for retrieving the time stamp of an account activity - Marked several more types as
non_exhaustive - Made price related attributes of
Positiontype optional after announcement of breaking API change at Alpaca - Added
fractionableattribute toAssettype - Switched to using tarpaulin for code coverage collection
- Formatted code base using
rustfmtand checked in configuration- Added enforcement of code formatting style checks in CI
- Added CI checks for auto generated code documentation
- Removed
time-utildependency
- Added
ApiInfo::from_partsconstructor - Adjusted
Client::issueto accept request input via reference - Introduced
ConversionErrortype- Replaced
unwraps with proper error variants
- Replaced
- Updated
ActivityTypeenum to be in sync with upstream variants - Added support for unknown
ActivityTypevariants - Switched to using
thiserrorcrate for defining error types - Updated
num-decimalto use version0.4of thenum-*crates - Bumped minimum supported Rust version to
1.46 - Bumped
http-endpointdependency to0.5 - Bumped
websocket-utildependency to0.8 - Bumped
tokio-tungstenitedependency to0.14
- Introduced trailing stop order types
- Added support for paging of account activity data
- Added support for specifying reported account activity direction as
well as
untilandaftertimes - Bumped
time-utildependency to0.3
- Added
PendingReplacevariant toTradeStatusenum - Added support for listing nested orders
- Replaced usage of private
serdeAPI with inline code - Bumped minimum supported Rust version to
1.44 - Excluded unnecessary files from being contained in release bundle
- Replaced
async-tungstenitedependency withtokio-tungstenite - Removed
chronodependency - Bumped
hyperdependency to0.14 - Bumped
hyper-tlsdependency to0.5 - Bumped
tokiodependency to1.0 - Bumped
websocket-utildependency to0.7
- Converted
NonTradeActivity::quantityfromu64toNum - Bumped
http-endpointdependency to0.4 - Bumped
websocket-utildependency to0.6 - Bumped
async-tungstenitedependency to0.8 - Bumped
serde_urlencodeddependency to0.7
- Enabled CI pipeline comprising building, testing, linting, and
coverage collection of the project
- Added badges indicating pipeline status and code coverage percentage
- Bumped
websocket-utildependency to0.5 - Bumped
async-tungstenitedependency to0.5
- Added example illustrating how to submit a limit order
- Bumped
http-endpointdependency to0.2
- Added
stream_rawfunction for interfacing with raw event streams - Adjusted streaming function to expect reference to
ApiInfoobject - Removed serialization support for account & trade events
- Removed
TradeStatus::to_order_statusmethod - Bumped
websocket-utildependency to0.4
- Added support for handling unknown variants for
account::Status,asset::Exchange,events::TradeStatus, andorder::Status - Added
PendingReplaceorder status variant - Removed serialization support for
Exchangeenum
- Added support for bracket-style orders
- Added
Fromimplementation forasset::Symboltype - Added support for almost-default construction of various request types
- Converted
Account::daytrade_counttou64 - Decreased tracing verbosity by one level
- Bumped
num-decimaldependency to0.2
- Added
average_fill_pricetoOrdertype - Fixed issue when deserializing non-trade activity object without a quantity
- Added
quantityfield toNonTradeActivitytype - Added
ReplaceRejectedandCancelRejectedvariants toTradeStatusenum - Use absolute values for quantity reported in
Positionobjects
- Added support for negating order and position
Sidetypes
- Added support for associating client IDs with orders
- Converted various quantities from
Numtou64 - Hooked up
order_idfield toTradeActivitytype - Bumped
time-utildependency to0.2
- Bumped
websocket-utildependency to0.3
- Added support for querying
/v2/account/activitiesendpoint - Added support for listing orders based on their status
- Introduced
Replacedvariant toTradeStatusenum
- Added support for changing an existing order
- Introduced
TradeStatus::to_order_statushelper method - Implemented
EqandHashfor the variousIdtypes
- Added support for opening and closing auction orders
- Factored out
time-utilcrate
- Added support for accessing
/v2/account/configurationsendpoint - Added support for querying
/v1/bars/<timeframe>endpoint - Added support for serializing account & trade events
- Switched from using
logtotracingas a logging/tracing provider - Switched to using
serde_urlencodedfor encoding query parameters - Bumped
http-endpointdependency to0.1.1
- Added support for liquidating an existing position
- Added support for short selling
- Removed
AssetReqandPositionReqtypes - Bumped
async-tungstenitedependency to0.3
- Migrated streaming functionality from
websockettoasync-tungstenite - Dropped dependency on
futures0.1 - Factored out
http-endpointcrate - Factored out
websocket-utilcrate - Correctly implemented
std::error::Error::sourceforErrortype - Bumped
env_loggerdependency to0.7 - Bumped
uuiddependency to0.8
- Removed support for
v1API - Implemented
FromStrfor various/v2/assettypes
- Converted
apifunctionality to useasync/awaitsyntax - Bumped
test-env-logdependency to0.2
- Added support for accessing various
v2endpoints:/v2/account/v2/asset/v2/orders/v2/positions
- Bumped
websocketdependency to0.24
- Initial release