After plenty of late nights and head scratching I have navigated the murky world of the 'Coinbase Pro API' and integrated it with a new trading app I have made. I have hit a snag however and am baffled as to why. Had a snoop around all the usual 'Google' hotspots and I can find similar questions but no answers. I hope someone can help?!
Simply put I want to do a conversion, see the seemingly simple endpoint to do so:
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postconversion
https://api.exchange.coinbase.com/conversions
Now; it's not an authentication issue etc. As mentioned, I have the API fully working in my app, accounts, orders, ticker etc, all no problem. Just conversions I have an issue with. I am posting the relevant variables as suggested:
Example:
{"to":"ETH","amount":"50.00","from":"BTC","profile_id":"my_profile_id"}
No matter what currencies I try, the response is always the same:
{"message":"Cannot convert BTC to ETH"}
With different coin ID's of course.
Full on drawing a blank here! Kind of a useless output from Coinbase?
I'd love to know if anyone has cracked this?
Thanks
Pete
Understood and thank you. After some back and forth with Coinbase support I found while conversion is possible in app, fee free, in API it’s an order with the relevant fees. A little frustrating but hopefully they will allow API conversion fee free soon 👍😊
"You can’t do a conversion unless their values are linked, such as USDC-USD. What you are looking to do is a market buy of some type, I would suggest a limit order as you can specify price options."
https://forums.coinbasecloud.dev/t/unable-to-successfully-convert-crypto-to-another-crypto/289
"You can’t do a conversion unless their values are linked, such as USDC-USD. How to determine if a conversion is linked, I'm not following this answer.
Is this what you mean?
{"to":"ETH-USD","amount":"50.00","from":"BTC-USD","profile_id":"my_profile_id"}
Related
I’m trying to use the Elsapy module to extract the abstracts of documents on certain topics.
I am able to do this but, unfortunately, only for a fraction of the documents found.
For example, a particular search returns 16 documents but I am only able to extract the information (e.g. abstracts) from 4 of them.
Upon further inspection, it seems that for the documents I can’t get the abstracts of:
-Don’t have a PII
-And have DOIs that don’t work.
I have tested the DOIs in the article retrieval interactive API guide
-The ones that returned abstracts worked fine
-The other ones return the error:
RESOURCE_NOT_FOUNDThe resource specified cannot be found.
Even though I have found the original articles and checked their DOI is correct.
An example of one that didn’t work is:
Sengupta, N. K., & Sibley, C. G. (2019). The political attitudes and subjective wellbeing of the one percent. Journal of Happiness Studies, 20(7), 2125-2140. doi:10.1007/s10902-018-0038-4
I have found that the ones that do ‘work’ all have the general form:
10.1016/j.ssmph.2019.100471
10.1016/j.apacoust.2015.03.004
Please let me know if you know why this is and how I can fix it.
Thanks for your help :)
The Article Retrieval API works for Elsevier content hosted on sciencedirect.com; all Elsevier articles have PII identifiers. The example DOI 10.1007/s10902-018-0038-4 does not work because it is published by Springer and, consequently, not available on ScienceDirect.
Kindly note that this is not a bug and everything is working as expected.
We're using the AlchemyData News API to extract sentiment and other information from news articles. However, we’re unsuccessful finding a substantial portion of those articles with the API, and we're unsure why this is happening. For articles that aren't found, we get the following response from the API:
{
"status": "OK",
"usage": "By accessing AlchemyAPI or using information generated by AlchemyAPI, you are agreeing to be bound by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html",
"totalTransactions": "96",
"result": {
"status": "OK"
}
Here's a sample query we're using - we're currently searching the last two days of news:
https://gateway-a.watsonplatform.net/calls/data/GetNews?apikey=APIKEYHERE&outputMode=json&start=now-2d&end=now&count=1&q.enriched.url.url=bizjournals&q.enriched.url.title=Capitol%20Hill%20apartments%20sell%20for%20record%20price%20&return=enriched.url.docSentiment.score,enriched.url.author,enriched.url.entities,enriched.url.concepts,enriched.url.relations
We’re unclear whether it’s a timing thing, something with our search methods, or maybe the News API just doesn’t capture everything. We’re searching a relatively tight date range right now and we’d like to avoid expanding it too much since the number of transactions ramps up rather quickly as we increase the date range.
I guess the big question would be: how quickly do articles go into the news database? If we need to wait a couple of days after they are published, we can do that. We are waiting until the next day to query the API right now.
Any suggestions would be much appreciated!
I have a recommendation but first a request: Can you provide a link to the news article you expected to be present on AlchemyNews? That will help us troubleshoot your url.
My understanding is AlchemyData News refreshes on the sub-hour rate. Given that you tried your query yesterday, does it now work today? If not, likely a bug in your query.
Recommendation: Try simple URL queries to start then make them more complicated to refine down. This ensures you don't over-filter your query and get zero results even when the article is present.
I want to implement a conversation system into my RPG (trying to get advanced AI as possible). Conversation as in, the player types:
"Hi, I would like a beer"
and the bartender would respond with
"Coming right up"
and then hand the player a beer.
I've got some ideas and some things I'd like to try, but first I would like to look at what's already been done. But extensive Googling does not turn up anything, so I'm wondering: has this been done or is there research being done in it? (I know this is very complicated, but I'm willing to give it a shot.)
Sure it has. Have a look at the "Eliza" program and its descendants. There's also a Wiki article on chatterbots that might interest you. Have a look at AIML as a way to represent the rules you might use.
For an advanced design, look up the game "Façade". The game's site describes the technologies used and gives links to relevant papers. There was also recently an extensive article in Gamasutra about this, called Beyond Façade: Pattern Matching for Natural Language Applications.
You may also want to look into the Turing Test and it's relevant scientific following/conferences/publications to see what has been done in the humanizing of AI speech.
I'm using Akismet for my spam protection on my web page. It won't even let users post something like, "Hey guys check this out!". I was hoping that I could just get rid of links and have them check the posters IP to see if it had been logged, but not block something so simple.
Is there a way to decrease the harshness through Akismet? I'm using the .NET 2.0 library here http://www.codeplex.com/wikipage?ProjectName=AkismetApi
For questions about Akismet you are always welcome to drop us a line - http://akismet.com/contact/
For cases like this the first thing I suggest is making sure that you are sending the correct data for the Akismet API call - http://akismet.com/development/api/#comment-check - since sending wrong or insufficient data can reduce the accuracy.
Second, if Akismet makes a mistake you should be sending the data back via the Submit Ham and Submit Spam API calls. This allows the Akismet system to learn more about what you consider spam/not spam on your site.
I'd suggest not using Akismet at all and just managing it yourself. You could write a regex to remove the links from postings: http://www.jhartig.com/2010/02/perfect-regex-for-removing-links-when.html
Instead of using one of these anti-spam engines, have you thought about using Facebook the way TechCrunch does? It is very effectively at not allowing spam or flamewars because it's not anonymous.
The other things to use is ReCaptcha, to keep the bots out which is probably the cause of your spam problems in the first place. http://www.google.com/recaptcha
hey here are my two cents to the topic:
try something that webcrawlers hate!! something they can't understand at ALL!!
you guessed it right pal!! FLASH!!
If I were you would use something flash like: flexi commment or something
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
This isn't really a programming question, more of an ideas question. Bear with me.
My sister gave me a well-used Nokia N95. I don't really need it, but I wanted it to do some programming for it. It supports a few languages, of which I can do Python.
My question is this: what to do with it? If I think about it, it has a lot to offer: i can program the GPS, motion sensor, wireless internet, sound and visual capture; it has a lot of hard disk space, it plays sound and video and so on.
The combinations seem limitless. The way I see it, it is a device that is easily always on me, has access to a huge data repository (the internet, and my personal data in it) and can be aware if I'm sitting at home, at work, or moving about somewhere. It could basically read my google calendar to check if I should be somewhere I'm not -- perhaps give me the bus schedule to get to where I should be. It could check if it's close to my home and therefore my home PC bluetooth/wifi. Maybe grab my recent work documents from my desktop computer, along with the latest Daily Show, for the bus journey to work. It could check my library account to see if any of my books are due, and remind me to take them with me in the morning. Set up an alarm clock based on what shift I have marked in my google calendar.
Basically I have a device that can analyze my movements in time (calendars with my data etc) and space (gps, carrier cell ids). By proxy, it could identify context situations -- I can store my local grocery store gps coordinates or cell mast ids and it could remind me to bring coffee.
Like I said, the possibilities seem limitless, and therefore baffling. Does anyone else have these pseudofantastical yearnings to program something like this? Or any similar ideas? How could this kind of device integrate into -- and help -- your life?
I'm hoping we could do some brainstorming.
"Gotta Leave" - A reminder that figures out the bus time, how far you are from a stop on your bus and shows a countdown till you "Could" leave (green), "Should" Leave (yellow), "Must" leave (orange), and "Gotta Run to get there" (red).
As inputs it needs what bus number you want to ride. You turn it on, it finds you, finds your closest few bus stops, estimates your walking speed at 2/mph and calculates when you need to leave where you are to get to the bus with 5 minutes waiting or less.
You should just pick any one and implement it.
It doesn't matter where you start, more that you actually do start. Don't concentrate on the destination, take a step and see what the journey holds.
Do it for a laugh to start and your expectation will be set right for both when you do find your killer app and when you don't.
"Phone home" - an interface to report home if you send a message to your phone that it is lost / stolen. Must be a silent operation from the phone holder's perspective
Options:
Self destruct mode to save your data from prying eyes
Keep calling with it's location every 10 minutes until an unlock is sent indicating the phone is found.
This is the same problem I face with the android (albeit java instead of python). The potential is paralyzing :)
I'd recommend checking out what libraries have already been written for doing cool stuff on that phone, and then building off of them- It's a system that provides inspiration, direction, and a good head start. For instance, on the android side, I'm fooling around with "zxing", a library that lets you read barcodes via the cellphone's camera. That's it's own sub-universe of possibilities, but at least it gives me a direction to go. "do cool things with information about products physically nearby"
"Late for Work" - Determines if you are not at work, buzzes you with a reminder and preps the phone to call into the sick line. Could be used if you are going to be late as well.
Inputs: Your sick line number. Time you should be at work. Where your home is, where your work is
Optional:
Send a text message
Post to an online in/out board
If you are still at home, sound an alarm
If you are still at home, call in sick, if you are not at home sent a "I'm going to be late" message
Comedy Option:
- If you don't respond to ten alarms, dial 911
To add on to what others have said, come up with some kind of office-GPS (via WiFi maybe? Does it have WiFi?) and tell you when you need to go to a meeting.