Skip to content

v0.2.1

Choose a tag to compare

@aaronmgn aaronmgn released this 29 Jun 04:23

Bug-fix release correcting three CIAPI endpoint paths so the generated client reaches the live API.

Fixed

  • session.log_on now calls the host-root /v2/session endpoint CIAPI serves, instead of the unreachable /session/v2/Session that returned 401 against the documented base URL (#8).
  • user_account.get_client_and_trading_account now calls the host-root /v2/UserAccount/ClientAndTradingAccount endpoint instead of the doubled /userAccount/v2/userAccount/... path (#9).
  • margin.get_client_account_margin now calls the v1 /margin/ClientAccountMargin endpoint (under /TradingAPI) instead of the /margin/v2/margin/... path that 404s (#10).

Added

  • EndpointSpec.host_rooted: host-rooted endpoints resolve their path against the server host root, so CIAPI's /v2 session and account endpoints work from the same base_url as the /TradingAPI resources.

Full Changelog: v0.2.0...v0.2.1