Java client for Tinkoff Invest Rest API: https://tinkoff.github.io/investAPI/swagger-ui/
DISCLAIMER: You may use this client only at your own risk. You're yourself accept liability for any profit or loss that may arise directly or indirectly from using this client.
- JDK 8 or later
Set your sandbox or exchange token in the application.yaml
config file:
tinkoff:
invest:
client:
token: {your_token_here}
Run $ mvn clean package
After compiling the project next components will be available (Spring beans):
- InstrumentsServiceApi
- MarketDataServiceApi
- OperationsServiceApi
- OrdersServiceApi
- SandboxServiceApi
- StopOrdersServiceApi
- UsersServiceApi
Implemented technical indicators for using withing the API:
- RSI (Relative Strength Index)
- CCI (Commodity Channel Index)
- Williams %R
- DPO (Detrended price oscillator)
- Momentum
You can find examples of using the API in the MarketApiExample
class and in tests.
To run the MarketApiExample
use the command $ mvn spring-boot:run
or execute the application from your IDE.
To enable logging of http requests apply this config:
logging:
level:
ru.ilysenko.tinka: DEBUG
Fork the repository, make changes, write a test for your code, send me a pull request. I will review your changes and apply them to the master branch shortly, provided they don't violate quality standards. To avoid frustration, before sending a pull request please run the Maven build:
$ mvn clean package