SDK Release Notes - January 2022

Alpaca maintains 4 SDKs in Python, TypeScript/JS, C#/.NET, and Go where we ship the latest functionality for Alpaca APIs.

The News API is now available for accessing historical and live news data for over 1000 equity and cryptocurrency symbols. In this release, all of the SDKs have been updated with the ability to access news data.

You can install the Alpaca Trade SDK using one of the following language specific CLI commands.

     
pip3 install alpaca-trade-api      
  
        
npm install @alpacahq/alpaca-trade-api      
  
   
dotnet add package Alpaca.Markets
  
go get -u github.com/alpacahq/alpaca-trade-api-go/v2/alpaca
  

alpaca-trade-api-python v1.5.0

New Features

  • The News API has been integrated with the SDK. Historical news data can be accessed using the get_news method within the REST client. Live news data can be subscribed with the subscribe_news method within the Streaming client.

Improvements

  • We’ve added the ability to subscribe to raw trade data within the Streaming client. Previously, there was no way to query raw trade data through the SDK.
  • Market Data V1 has now been deprecated. Following this change, some methods within the REST and Streaming clients have also been deprecated

alpaca-trade-api-js v2.12.1

New Features

  • The News API has been integrated with the SDK. Historical news data can be accessed using the getNews method within the Alpaca client. A news websocket client has also been added for live news data.

alpaca-trade-api-csharp v5.2.8

New Features

  • The News API has been integrated with the SDK. Historical News data can be accessed using the AlpacaDataClient and live news data through the AlpacaNewsStreamingClient.

Improvements

  • Added changes to move towards a more consistent response structure for ICalendar


alpaca-trade-api-go v2.2.0

New Features

  • The News API has been integrated with the SDK. Historical news data can be accessed using the GetNews method within the rest client. A streaming client has also been added for live news data.

Improvements

  • Fixed market data stream read limit.
  • Fixed missing fmt import in stream/flow.go

Interested in learning more about Broker API?

Don't miss out on any updates about our Broker API suite of solutions! Share your details with us and be the first to know about our latest content.

You've successfully subscribed to Alpaca Blog | Developer-First API for Stocks and Crypto
Great! Next, complete checkout for full access to Alpaca Blog | Developer-First API for Stocks and Crypto
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.