Questions tagged [elixir-iex]

Elixir’s interactive shell.

iex is Elixir’s interactive shell, which can be used to interactively run Elixir code from the command line.

150 questions
0
votes
2 answers

Converting a Dict of Dicts to Dataframe

I am attempting to loop a list of ticker symbols through IEX API in order to obtain Price to Book ratios for a large group of tickers. The ultimate goal is to have all of the Price to Book Ratios in one csv file. For multiple tickers it returns the…
0
votes
1 answer

IEX API technical indicators batch call

Just wondering if anyone has been able to make a batch call to the iex cloud api requesting technical indicators like SMA10day or EMA10day for multiple tickers. I have no problem accessing some of the other features via the following…
codephil
  • 1
  • 2
0
votes
0 answers

Why is IEX Finance not loading/working and not recognizing the module?

So I have iexfinance - I successfully installed it via PIP, obtained an API token, etc but whenever I try running I get the following error: ModuleNotFoundError: No module named 'iexfinance' Here is the code: from iexfinance import IexFinance as…
DAG
  • 1
  • 1
0
votes
2 answers

Why is my IEX API request not going through?

I'm planning to use the IEX Cloud api with a finance application. I was testing it with this query: https://www.iexcloud.io/v1/stock/aapl/1y&token=pk_4b288536af684768ab46ea629b480ece I also tried…
0
votes
1 answer

how to refactor IEX exchange data calls for grabbing data from api in ruby program

I am using the iex exchange api for grabbing info about stocks. It's working great but my code is very ugly was wondering how to refactor the code. stock = IEX::Api::Client.new( publishable_token: token, endpoint:…
goodjobbin85
  • 111
  • 8
0
votes
0 answers

How can I use pyEX to get earnings data for multiple periods?

The documentation says you can get data for the four most recent earnings reports, but when I used the code below, it only returned data for one period. How can I get the data for four periods? import pyEX as p p.stocks.earningsDF('FB',…
0
votes
3 answers

IEX Works with secret key but not with test key

Hi I have a problem with this piece of code that needs to get stock prices based on a defined time period and a ticker code. The program actually works when I use my IEX API KEY, but not when I use my TEST IEX API KEY, I get the following error…
jhjorsal
  • 197
  • 3
  • 10
0
votes
1 answer

Retrieving values from a Map from an Elixir script

If I write a simple Map in Elixir, for example: person = %{ :name => "Bob", :age => 45} and I save it as a script, for example script.exs How do I retrieve Bob's age after I compile the script with elixir script.exs ? Or, even better: iex…
A. N. Other
  • 409
  • 4
  • 14
0
votes
2 answers

How to call multiple quotes from IEX Cloud API

I am trying to use IEX Cloud to get stock quotes for multiple stocks with one API call. Here is my api call for Apple,Facebook, and Tesla. What am I doing…
0
votes
1 answer

IEx truncated Error stackstrace despite of config

My config ~/.iex.exs is : IEx.configure(inspect: [limit: :infinity, printable_limit: :infinity, pretty: true , safe: false] ) In IEx, strings, lists are not truncated, but despite the configuration ,I have some errors troncated like : 19:35:15.338…
EMottet
  • 310
  • 1
  • 3
  • 14
0
votes
2 answers

Trying to use Get-WmiObject to decide what script to call

(New-Object Net.WebClient).Proxy.Credentials=[Net.CredentialCache]::DefaultNetworkCredentials;iwr('http://webserver/payload.ps1')|iex" Get Wmi Object Win32 Operating System Default Network Credentials $host = ((Get-WmiObject…
user11382469
0
votes
2 answers

Elixir piping output to an anonymous function

I'm currently learning elixir and i'm trying to print functions and their arity print = fn ({function , arity}) -> IO.puts "#{function}/#{arity}" end Enum.__info__(:functions) |> Enum.each(print.()) this returns **…
Cheeze
  • 46
  • 1
  • 8
0
votes
1 answer

How do I simplify this code? Is there a better way of doing this?

I just got this code working after hours of stress. I am new to Javascript so I am not sure if I did this the most efficient way possible. I am using an API that is provided by IEX. The goal of this code is to output out news when there is some.…
0
votes
1 answer

How can I convert this API call to a data table in r?

I want to convert a call from IEX to a data table in R: https://api.iextrading.com/1.0/ref-data/symbols Thanks,
Mehdi Zare
  • 1,221
  • 1
  • 16
  • 32
0
votes
1 answer

How to Stop Forced Module Namespace in Elixir Phoenix iex Console?

When using the iex console from my Phoenix application, as follows: iex -S mix phx.server I cant seem to call System functions, such as System.stop(1) or System.halt(1) as it forces a namespace to the front of the module. An error results as that…
Todd
  • 2,824
  • 2
  • 29
  • 39
1 2 3
9
10