I'm writing a small java app that will allow me to trade on Kraken without using their web front-end.
I have most of the calls working, but can't seem to get AddOrder working..
No matter what I send, Kraken replies with EGeneral:Invalid arguments
I'm able to do an AccountBalance call which is also a private call that needs my API-key and API-Sign. So I'm pretty sure I'm creating the API-Sign properly.
For a simple market order to buy 12 ETH in USD, I would send:
https://api.kraken.com/0/private/AddOrder?pair=XETHZUSD&type=buy&ordertype=market&volume=12.00000
Has anyone used this API? Can point out something I might be missing?
Thanks!
Related
I am making a bot with python that works with the Kucoin api, but I would like to make orders with leverage and for this I need to access futures, but for now I have not found any library or any end point in the Kucoin api that let me access that market,
Do you know of any library for this or it simply cannot be done? Thank you very much in advance
I have been working with the official kucoin api
https://docs.kucoin.com/
there's separate API for Kucoin futures (https://docs.kucoin.com/futures/) and separate library operating on this API (kucoin-futures-python)
What is the recommended way of detecting if a store has CarrierService API available? I.e. it's on the right plan or billed annually.
I noticed attempting to retrieve a list of carrier services could work since it's always empty if a shop cannot use the CarrierService API. However, that feels hacky. Apart from that, I can imagine a scenario when this can return empty also for shops with that API available. Is there a better, more reliable way?
The only sure way is to try creating a carrier service. This API call will fail with a specific error message in the response body when the shop doesn't have that feature.
I'm making an app to keep track of things like miles driven, Kwh used, etc. But I'm having a hard time figuring out how to get a client_id and client_secret being that the API is unofficial.
Here's the Apiary with the API details:
http://docs.timdorr.apiary.io/#reference/authentication/tokens/get-an-access-token?console=1
Anyone know how to generate them? or is everyone else that makes an app for an unofficial API just making a random string for those?
The apiary web site tells you to use the following values.
"client_id”: "81527cff06843c8634fdc09e8ac0abefb46ac849f38fe1e431c2ef2106796384",
"client_secret": "c7257eb71a564034f9419ee651c7d0e5f7aa6bfbd18bafb5c5c033b093bb2fa3",
Another option would be to use the Smartcar's API! The cliend_id and client_secret appear on your dashboard once you sign up (https://smartcar.com), it is very easy to find them. The API also allows you to do other stuff like locking and unlocking the tesla, finding the location, etc.
You can also check the Odometer API endpoint page to learn more about how you can get the miles driven here (https://smartcar.com/product/odometer/).
Does anyone know how many notifications we can create at once using PushWoosh's remote API ?
I'm talking about this method :
http://www.pushwoosh.com/programming-push-notification/pushwoosh-push-notification-remote-api/#PushserviceAPI-Method-messages-create
Is there any limit in the "notifications" array?
I assume there must be one, but didn't find any information about it on the guides.
Thanks.
Answer : I did some testing using the Remote API, and i couldn't get a response when sending 1000 push at a time.
However, when sending 100 push, it works fine.
I would suggest sending no more than 100 (that's what i will do).
Though it is possible to include several notifications in one call, I would recommend using one API call per notification. This way you can track each notification status.
Pushwoosh team :)
I am new to the bloomberg API so forgive me if this is silly but I am creating a html website on a mac and I want to simply fill a div with some data from bloomberg e.g. the current value of the EURUSD.
How can this be done? Is this what the bloomberg API is for?
This is something that would typically be forbidden by the license - data obtained from the Bloomberg API can generally not be redistributed.
Plus (you might know that) the Bloomberg API is publicly available but to be able to receive actual data through the API, you need to subscribe to Bloomberg, which is a payable service.
There are probably better (and less expensive) ways to get EUR.USD rates.
The API is for this, but the licensing is typically not. You can use the server mode and try to communicate with a Bloomber Server (paid component) and ask for licensing to redist the data. Your problem here is not technical but legal
If you don't have a Bloomberg account, you can get an idea of how this is done using the Bloomberg API Emulator. It works and looks just like the Bloomberg API, but it doesn't require an account to use. It doesn't return real data, but you can use it to learn how to request data from the Bloomberg API.
From a 10-minute read of the Developer's Guide at http://www.openbloomberg.com/, it looks like you might be able to use it to get current foreign exchange rates. The Developer's Guide gives coding examples in Java, .NET, C++, and C.