From f538454ddff65768f851c5d3203dd0535eb88749 Mon Sep 17 00:00:00 2001 From: nickbair Date: Sat, 4 Jan 2025 15:13:34 -0700 Subject: [PATCH 1/2] Fix position validation warnings --- lib/models/definitions/position/position_side.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/models/definitions/position/position_side.ex b/lib/models/definitions/position/position_side.ex index 938de36..e90fdea 100644 --- a/lib/models/definitions/position/position_side.ex +++ b/lib/models/definitions/position/position_side.ex @@ -29,8 +29,8 @@ defmodule ExOanda.PositionSide do :financing, :commission, :dividend_adjustment, :guaranteed_execution_fees ]) |> validate_required([ - :units, :average_price, :trade_ids, :pl, :unrealized_pl, :resettable_pl, - :financing, :commission, :dividend_adjustment, :guaranteed_execution_fees + :units, :trade_ids, :pl, :unrealized_pl, :resettable_pl, + :financing, :dividend_adjustment, :guaranteed_execution_fees ]) end end From 006ca1a3de9ad9ad2590bc0d9cdd9f4bf4304cb5 Mon Sep 17 00:00:00 2001 From: nickbair Date: Sat, 4 Jan 2025 15:16:32 -0700 Subject: [PATCH 2/2] Bump version, fix GH action --- .github/workflows/elixir.yml | 13 ++++++------- mix.exs | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 12dbf1f..c10d93d 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -18,18 +18,18 @@ jobs: strategy: matrix: elixir: ['1.14', '1.15', '1.16', '1.17'] - otp: ['24.0', '25.0', '26.0', '27.0'] + otp: ['24.3.4.13', '25.3.2.8', '26.2.1', '27.0.0'] exclude: - elixir: '1.14' - otp: '26.0' + otp: '26.2.1' - elixir: '1.14' - otp: '27.0' + otp: '27.0.0' - elixir: '1.15' - otp: '27.0' + otp: '27.0.0' - elixir: '1.16' - otp: '27.0' + otp: '27.0.0' - elixir: '1.17' - otp: '24.0' + otp: '24.3.4.13' steps: - uses: actions/checkout@v3 @@ -38,7 +38,6 @@ jobs: with: elixir-version: ${{ matrix.elixir }} otp-version: ${{ matrix.otp }} - http-client-timeout: 300 - name: Restore dependencies cache uses: actions/cache@v3 with: diff --git a/mix.exs b/mix.exs index 67cb784..ca7dee7 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule ExOanda.MixProject do def project do [ app: :ex_oanda, - version: "0.0.3", + version: "0.0.4", elixir: "~> 1.14", start_permanent: Mix.env() == :prod, deps: deps(),