-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quotes API is using UCID instead of symbol
- Loading branch information
Showing
12 changed files
with
127 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
defmodule ArchethicFAS.Quotes.Provider do | ||
@moduledoc false | ||
|
||
alias ArchethicFAS.Quotes.Currency | ||
alias ArchethicFAS.Quotes.UCID | ||
|
||
@callback fetch_latest(list(Currency.t())) :: | ||
{:ok, %{Currency.t() => float()}} | {:error, String.t()} | ||
@callback fetch_latest(list(UCID.t())) :: | ||
{:ok, %{UCID.t() => float()}} | {:error, String.t()} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
defmodule ArchethicFAS.Quotes.UCID do | ||
@moduledoc false | ||
|
||
@ucids Application.compile_env!(:archethic_fas, :ucids) | ||
|
||
@type t :: pos_integer() | ||
|
||
@doc """ | ||
Return all handled ucids | ||
""" | ||
@spec list() :: list(t()) | ||
def list() do | ||
@ucids | ||
end | ||
end |
Oops, something went wrong.