Closed Thread
Results 1 to 17 of 17

Can i setup excel to use an api

  1. #1
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Can i setup excel to use an api

    i have a website (coinbase.com) that i want to scrape the dashboard webpage so i can get the current prices of selected cryptocurrencies. i have tried the get external from webpage but can't get it to work (on windows 7 here and windows 10 at home). I also tried to do the web API but can't get that to work either. does anyone have experience with API's and getting info into excel?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,758

    Re: Can i setup excel to use an api

    What is the URL for the dashboard page? I could not find that page on the site you mentioned.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: Can i setup excel to use an api

    There are couple of ways to do it.

    1. Using PowerQuery (Get & Transform) and use "From Web"->Advanced to set all necessary parameters and any header (API Key etc).
    Still could be done for OAuth2, but again, quite a bit more involved than simple API Key.

    2. Using VBA, utilizing xmlhttp to send request (setting all parameters & headers as needed).

    Edit: Looks like coinbase.com uses OAuth2 for authentication, it's bit more involved than single step API key. Have a read of... It's specifically for Google OAuth2 but same principle applies.
    http://ramblings.mcpher.com/Home/exc...s/googleoauth2
    https://gist.github.com/brucemcpherson/6937174

    Or just use their library for Python or other programming language. It will be easier I'd imagine.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Can i setup excel to use an api

    sorry for not including that. it is coinbase.com/dashboard

  5. #5
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Can i setup excel to use an api

    there are two ways into coinbase, one gives the api key, the other is oauth2 (which i haven't done yet). i will read the links and see if i can get by. thanks for responding.

  6. #6
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Can i setup excel to use an api

    @CK76 - so i read the Oauth2 and i don't think that i have enough experience/ability to do that.

    im gonna ping the support desk at coinbase and see what they recommend. I'll come back and update this post.

  7. #7
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Can i setup excel to use an api

    Oath2 is required if you want to access third party wallets (i.e. creating an application for others to use). For your needs (as described, accessing your own account) API key should be sufficient.
    If you are pleased with a member's answer then use the Star icon to rate it.

  8. #8
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Can i setup excel to use an api

    @buran

    I tried with the key but was unsuccessful, is that something you can try? i put in the key but it wouldn't accept it.

  9. #9
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Can i setup excel to use an api

    I don't know what you are doing, and I have no intention to register with this site in order to be able to test However I see thay have certain requirements https://developers.coinbase.com/api/v2#api-key

  10. #10
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Can i setup excel to use an api

    yah, i just got that page from coinbase, i will have to read it and see what i can do.

    as for what i am doing, i want the value of bitcoin so that i can update excel with the current price (i have formula's).

  11. #11
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Can i setup excel to use an api

    Quote Originally Posted by dmcgov View Post
    I tried with the key but was unsuccessful, is that something you can try? i put in the key but it wouldn't accept it.
    Quote Originally Posted by dmcgov View Post
    as for what i am doing, i want the value of bitcoin so that i can update excel with the current price (i have formula's).
    I mean I don't know how you try with the key and fail as you don't post any code

  12. #12
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Can i setup excel to use an api

    so now that i am trying this again, i lost my way to the api section. how do i get back to the menu where i can put in the api key to get the error code?

  13. #13
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: Can i setup excel to use an api

    Here's what query using PowerQuery->From Web should look like.

    Fill header value with your actual Key, Sig & current Timestamp.

    0.JPG

    Typically speaking, you'd want to use Timestamp value from another query (to time API endpoint)

  14. #14
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Can i setup excel to use an api

    thanks @ck76, only have a couple of questions for you.

    what would/might a Signature sample value look like?
    do i have to get timestamp from another query or can i just input one? if yes, what would a sample look like?

  15. #15
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: Can i setup excel to use an api

    As side note, have a read of links below to create "SIGN" header with sha256 HMAC

    Where message is prehash string timestamp + method + requestPath + body

    https://stackoverflow.com/questions/...macro-in-excel
    http://www.vbforums.com/showthread.p...ing-Crypto-API
    http://community.powerbi.com/t5/Desk...eys/m-p/111052

    Or just leverage Python or other programming language that has modules to handle it.

  16. #16
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Can i setup excel to use an api

    @ck76,

    left you a PM, let me know what you think?

  17. #17
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,758

    Re: Can i setup excel to use an api

    Closed at dmcgov's request to post in commercial services.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] need help with page setup/print Setup on a worksheet
    By laurabach in forum Excel General
    Replies: 9
    Last Post: 04-28-2013, 11:44 PM
  2. Excel merge setup
    By aimeeneedshelp in forum Excel General
    Replies: 0
    Last Post: 02-11-2011, 03:46 PM
  3. Excel Page Setup Up
    By TPKing in forum Excel General
    Replies: 9
    Last Post: 06-16-2009, 07:22 PM
  4. Excel Sheet Setup via VB6
    By George1111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2009, 06:04 PM
  5. Excel file setup
    By Jmesser in forum Excel General
    Replies: 2
    Last Post: 09-18-2007, 09:06 PM
  6. [SOLVED] How do I setup a dialog box in excel
    By jeansguy in forum Excel General
    Replies: 1
    Last Post: 08-14-2006, 09:45 AM
  7. Excel Page Setup
    By Reflective Eye in forum Excel General
    Replies: 3
    Last Post: 06-23-2006, 08:40 PM
  8. Excel paper setup
    By Vanessa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2005, 09:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1