Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Create new column to get stock prices with API

Good morning all,

Hope someone can help me. I need to create a new column that shows the price of a specific asset trough an API.

API link is like this:

https://api.binance.com/api/v3/ticker/price?symbols=["BTCUSDT"]

1 - I need to replace this part of the API ["BTCUSDT"] with the first column named "Coin".

2 - Then to run the API and retrieve the price in the new coulmn I think I should use something like "" Text.From(Web.Contents([ColumnName]))"" or maybe some other formula.

 

Lud8080_1-1734426468488.png

 

 

Thank you very much 🙂

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Something like this.  Note that access is restricted so you will need to provide authentication in the code.

 

 

let
  Source = #table({"Coin"}, {{"BTC"}, {"ETH"}, {"SOL"}}), 
  #"Added Custom" = Table.AddColumn(
    Source, 
    "Data", 
    each Web.Contents(
      "https://api.binance.com/api/v3/ticker/price", 
      [Query = [symbols = [Coin] & "USDT"]]
    )
  )
in
  #"Added Custom"

 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Something like this.  Note that access is restricted so you will need to provide authentication in the code.

 

 

let
  Source = #table({"Coin"}, {{"BTC"}, {"ETH"}, {"SOL"}}), 
  #"Added Custom" = Table.AddColumn(
    Source, 
    "Data", 
    each Web.Contents(
      "https://api.binance.com/api/v3/ticker/price", 
      [Query = [symbols = [Coin] & "USDT"]]
    )
  )
in
  #"Added Custom"

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors