Get Moving Average for crypto currency from Coinbase API - coinbase-api

Trying to get moving average values like EMA(9), EMA(20), EMA(20) etc. for any given crypto from Coinbase API in real time for use in a bot trading app.
Is this possible?
Any direction to documentation / guidance or sample will help.
Not really sure how to go about getting this kind of data

You'll want to use the pro api.
Start with the candles endpoint and loop through it.
if you have specific questions about your code later, that's another question.

Related

Coinbase Pro Example Query

What resources to use writing a Coinbase Pro Client ??
I'm trying to write an example Coinbase Pro client e.g. lists all your wallets and transactions.
This Example I'm not sure how to handle / decode the API-Secret https://developers.coinbase.com/docs/wallet/api-key-authentication
When placing the the API_KEY and API_SECRET as plain text I get the error
raise TypeError("key: expected bytes or bytearray, but got %r" % type(key).__name__)
TypeError: key: expected bytes or bytearray, but got 'str'
Then there is a very similar link But looks more like JavaScript https://docs.cloud.coinbase.com/exchange/docs/authorization-and-authentication
Other tutorials e.g. Coinbase Pro API – An Introductory Guide
using completly different libraries..
So what is a good starting point / tutorial to access coinbase pro
coinbase I managed and it was super easy :)
Some light into the questions:
still in research
still in research - probably not relevant
The tutorial talks about the coinbase pro API - BUT it uses / calls methods of coinbasepro-python wrapper which internally calls the api.

How can I send simple variables to a website with Python

Lets say I had a Python script that determined the users favorite fruit, then sent the data:
fruit = apple
to a website named apples.com
How can I do this?
Also, If you can, can you explain the web end of the exchange, or should I make another post for that?
I am not sure which tags to use, so recommendations are welcome.
The question is pretty vague. You could take a look at the request module to send POST request to the website. The data could be enconde in json format. You'll need to have some sort of API on the website to use the received data. You can make a simple app with Flask.

Can Firebase accept SOAP messages

This may be the wrong way to phrase this, however I'll ask none the less.
Can I code a Firebase database to accept and parse SOAP protocol messages into my database?
I am new to databases in general, aside from sql, and am just trying to make sure I start off on the right footing.
I will be displaying my Firebase database entries to a webpage.
All SDKs and APIs to access the Firebase Database are documented here. At the moment that does not include a SOAP API.
It is unlikely that such an API will be added (definitely not in the near future). You could try searching if somebody has made a bridge, but I don't recall every hearing of one.

Options for Filtering Data in real time - Will a rule engine based approach work?

I'm looking for options/alternative to achieve the following.
I want to connect to several data sources (e.g., Google Places, Flickr, Twitter ...) using their APIs. Once I get some data back I want to apply my "user-defined dynamic filters" (defined at runtime) on the fetched data.
Example Filters
Show me only restaurants that have a ratting more than 4 AND have more than 100 ratings.
Show all tweets that are X miles from location A and Y miles from location B
Is it possible to use a rule engine (esp. Drools) to do such filtering ? Does it make sense ?
My proposed architecture is mobile devices connecting to my own server and this server then dispatching requests to the external world and doing all the heavy work (mainly filtering) of data based on user preferences.
Any suggestions/pointers/alternatives would be appreciated.
Thanks.
Yes, Drools Fusion allows you to easily deal with this kind of scenario. Here is a very simple example application that plays around with twitter messages using the twitter4j API:
https://github.com/droolsjbpm/droolsjbpm-contributed-experiments/tree/master/twittercbr
Please note that there is an online and an offline version in that example. To run the online version you need to get access tokens on the twitter home page and configure them in the configuration file:
https://github.com/droolsjbpm/droolsjbpm-contributed-experiments/blob/master/twittercbr/src/main/resources/twitter4j.properties
check the twitter4j documentation for details.

Get position data from mobile browser

I am developing a web app that will be hit frequently by mobile browsers. I am wondering if there is a way to get enough information from the browser request to lookup position data (triangulation or GPS) Not from the request directly, of course. A colleague suggested there some carriers supply a unique identifier in the request header that can be sent to a web service exposed by said provider that will return position data if the customer has enabled that. Can anyone point me in the right direction for this or any other method for gleaning position data, even very approximate. Obviously this is app candy, e.g. if the data is not available the app doesn't really care...
Or perhaps a web service by carrier that will provide triangulated data by IP?
Google has ClientLocation as part of their AJAX APIs. You'll need to load Google's AJAX API (requires an API key) and it'll try to resolve the user's location data for you.
I've got blackberry gps to javascript working OK in a GMaps mashup. Pretty simple, actually. http://www.saefern.org/tickets/test4.php -- help yrself to view source.
(I don't currently have a bb. A user emailed me with "... it seems to be polling every 15 seconds or so, so it keeps adding new locations ... ".)
I'm looking for javascript gps info on an iPhone equivalent. And Nokia, and ... .
Any information appreciated.
I have used this javascript library sucessfully:
http://code.google.com/p/geo-location-javascript/
The examples work great. The user will always be prompted to share their location--don't know a way to avoid that.
Use the source IP address to approximate a network location. No, you won't get latitude and longitude in an HTTP request from an iPhone. Not unless you write a 3rd party app and ask them to run it.
You might be better off just running a poll on your website.
I know that some providers in Japan have a tracking service for location of cellphones.
I also know that the information is not public. I think you need to have a very good reason before the provider gives that information free as it is in my opinion sensitive personal data. Of course they will give the information to police officers but not to the general public.

Resources