Skip to content

Releases: carvalab/rofex-go

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 18:19

Breaking change

Primary reports business errors (rejected orders, unknown symbols, accounts you can't access) as HTTP 200 with "status":"ERROR". Up to v0.3.4 the SDK returned those with err == nil, so if err != nil did not catch a rejected order. They now come back as *rofex.APIError:

resp, err := client.SendOrder(ctx, order)
var apiErr *rofex.APIError
if errors.As(err, &apiErr) {
    log.Println("rejected:", apiErr.Message, apiErr.Description)
}

If your code checks resp.Status == "ERROR", check err instead.

Fixes

  • MarketDataSnapshot and SubscribeMarketData called without Entries were rejected by the real API. They now request BI, OF and LA by default.

Tests and CI

  • New unit tests cover API errors (using bodies captured from the live API), order queries, detailed positions, instrument listings, the WebSocket lifecycle (login, reconnect, session end, slow consumers) and the rate limiter. Coverage is 84% and CI fails below 80%.
  • The integration job now checks against the real API that an unknown symbol returns *APIError.

Full Changelog: v0.3.4...v0.4.0

v0.3.4

Choose a tag to compare

@github-actions github-actions released this 16 Oct 18:03

Full Changelog: v0.3.3...v0.3.4

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 16 Oct 17:08

Full Changelog: v0.3.2...v0.3.3

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 16 Oct 16:49

Full Changelog: v0.3.1...v0.3.2

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 15 Jul 21:20

Full Changelog: v0.3.0...v0.3.1

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 15 Jul 21:05

Full Changelog: v0.2.1...v0.3.0

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 08 May 21:25

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

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 08 May 21:18

Full Changelog: v0.1.0...v0.2.0