Current section
9 Versions
Jump to
Current section
9 Versions
Compare versions
3
files changed
+9
additions
-2
deletions
| @@ -21,4 +21,4 @@ | |
| 21 21 | {<<"optional">>,false}, |
| 22 22 | {<<"repository">>,<<"hexpm">>}, |
| 23 23 | {<<"requirement">>,<<"~> 0.4.0">>}]]}. |
| 24 | - {<<"version">>,<<"0.1.6">>}. |
| 24 | + {<<"version">>,<<"0.1.7">>}. |
| @@ -24,5 +24,12 @@ defmodule CryptoExchangeAPIs.DYdX do | |
| 24 24 | def get_asset_positions(opts \\ []) do |
| 25 25 | Req.get("https://indexer.dydx.trade/v4/assetPositions", opts) |
| 26 26 | end |
| 27 | + |
| 28 | + @doc """ |
| 29 | + https://docs.dydx.exchange/api_integration-indexer/indexer_api#listpositions |
| 30 | + """ |
| 31 | + def list_positions(opts \\ []) do |
| 32 | + Req.get("https://indexer.dydx.trade/v4/perpetualPositions", opts) |
| 33 | + end |
| 27 34 | end |
| 28 35 | end |
| @@ -4,7 +4,7 @@ defmodule CryptoExchangeAPIs.MixProject do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :crypto_exchange_apis, |
| 7 | - version: "0.1.6", |
| 7 | + version: "0.1.7", |
| 8 8 | elixir: "~> 1.14", |
| 9 9 | start_permanent: Mix.env() == :prod, |
| 10 10 | deps: deps(), |