<p>Pretty much every exchange offers their own APIs for trading.  Take a look at <a href="https://www.kraken.com/en-us/features/api#add-standard-order" rel="nofollow noreferrer">kraken</a>.</p>

CC BY-SA 4.0
2021-01-22T15:11:29.583Z
I see that they have examples for some other programming languages, but not Java.
Link: https://www.kraken.com/en-us/features/api#example-api-code

But, I suppose that it is also possible to use that API in Java, right?
Jakov
CC BY-SA 4.0
2021-01-22T16:07:37.370Z
Yes, APIs can be used with any language/tech stack as long as you can send out the requests in the format the API will understand.  You can easily build this service using spring boot for example
ooomid
CC BY-SA 4.0
2021-01-22T15:04:25.587Z
2021-01-22T15:04:25.587Z
ooomid
<p>I need to create a simple bot for buying and selling coins and the programming language needs to be <code>Java</code> due to some technical specifications.</p>
<p>These are the functions which I need from that <code>API</code>:</p>
<ul>
<li><code>buy(args)</code></li>
<li><code>sell(args)</code></li>
<li><code>getCurrentPrice(args)</code></li>
</ul>
<p>If you know any <code>API</code>-s which are reliable and suitable for <code>Java</code>, please let me know.</p>

<api><java><bots>
API for automatical buying and selling coins in Java
Jakov
# API for automatical buying and selling coins in Java

(Asked by: username_0 on 2021-01-22)

I need to create a simple bot for buying and selling coins and the programming language needs to be `Java` due to some technical specifications.

These are the functions which I need from that `API`:

* `buy(args)`
* `sell(args)`
* `getCurrentPrice(args)`

If you know any `API`-s which are reliable and suitable for `Java`, please let me know.

**Tags:** api, java, bots


---

## 1 answers

### Answer by username_1 on 2021-01-22. Score: 1 | Accepted answer

Pretty much every exchange offers their own APIs for trading. Take a look at [kraken](https://www.kraken.com/en-us/features/api#add-standard-order).

> **Comments:**
> **username_0**: I see that they have examples for some other programming languages, but not Java. Link: https://www.kraken.com/en-us/features/api#example-api-code  But, I suppose that it is also possible to use that API in Java, right?  
> **username_1**: Yes, APIs can be used with any language/tech stack as long as you can send out the requests in the format the API will understand.  You can easily build this service using spring boot for example  

---

