Saxo Bank plans more changes for its OpenAPI
Multi-asset trading and investment specialist Saxo Bank plans to implement further changes to its OpenAPI in April and May.
On or shortly after April 1, 2022, Saxo will be introducing HTTP/2 and Akamai acceleration for Saxo Bank OpenAPI.
This is to optimize performance. Saxo expects this to be non-breaking for almost all of its client applications.
On, or shortly after May 1, 2022, Saxo will be changing the value returned in the NetPositionId field, which can be found on the /port/v1/positions, /port/v1/netpositions and /port/v1/closedpositions resources.
The intended purpose of the NetPositionId field is to represent a summation/grouping of positions, which should be related based on a scope, such as Client, AccountGroup or Account. No other meaning should be inferred from the NetPositionId.
Since the NetPositionId is a temporary construct it is synthesized from a combination of several factors. Currently you may see a NetPositionId of “APPL:XNAS__Stock”. After the change being introduced on or after May 1st 2022, the NetPositionId may instead be “9834780_xyz”, or “OTgzNDc4MF94eXoK”.
The intended purpose of NetPositionId serving as a temporary group of related positions will continue to hold.
Please review you usage of NetPositionId. If you only use it for the purpose of identifying a group of related positions, you do not need to do anything.
If on the other hand you somehow parse the value returned in NetPositionId and use this to infer something about the instrument on which the grouping is made, then you must change your code.
This usage was never intended and going forward this will no longer be possible. Instead you may look at the values of AssetType found directly on the entity and Symbol found in the nested object “DisplayAndFormat”.
Finally, Saxo plans to remove of a number of fields in the cs/v1/tradingconditions/instrument resource. The following fields are planned for removal (On or after June 2022):
The company regularly updates its OpenAPI, which offers:
- Access to all resources and functionality required to build a high-performance multi-asset trading platform.
- Better integration with Saxo Bank for partners and affiliates through a growing set of resources, such as Saxo’s Onboarding API.