diff --git a/README.md b/README.md new file mode 100644 index 0000000..c55d76e --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# xStation5 API Golang Library + +This project makes it possible to get data from Forex market, execute market or limit order with Golang through WebSocket connection + +This module may can be used for [X-Trade Brokers](https://www.xtb.com/en) xStation5 accounts + +API documentation: [http://developers.xstore.pro/documentation](http://developers.xstore.pro/documentation) + +## Disclaimer + +This xStation5 API Python library is not affiliated with, endorsed by, or in any way officially connected to the xStation5 trading platform or its parent company. The library is provided as-is and is not guaranteed to be suitable for any particular purpose. The use of this library is at your own risk, and the author(s) of this library will not be liable for any damages arising from the use or misuse of this library. + + +## Usage + +### Authentication +```go +xapiDemoClient, err := NewClient(os.Getenv("XAPI_USER_ID"), os.Getenv("XAPI_PASSWORD"), "demo") +// or +xapiRealClient, err := NewClient(os.Getenv("XAPI_USER_ID"), os.Getenv("XAPI_PASSWORD"), "real") +``` +