primaryflorian / lemon-markets-php-sdk
Inofficial PHP-SDK for Lemon Markets
dev-main
2022-09-06 09:00 UTC
Requires
- guzzlehttp/guzzle: ^7.4
This package is auto-updated.
Last update: 2025-08-06 15:13:18 UTC
README
This Repository contains an inofficial SDK for Lemon Markets. All current features (as of early April 2022) are supported.
The SDK was only tested in paper mode and is used live at your own risk. Any liability is explicitly excluded.
Installation
You can install the SDK with the following command.
composer require primaryflorian/lemon-markets-php-sdk:dev-main
Usage
require_once 'vendor/autoload.php';
Use the autoloader to load all classes.
use LemonMarketsSDK\LemonMarkets; $LemonMarkets = new LemonMarkets('API-KEY', 'STATUS'); $LemonMarkets->data->getInstruments(); $LemonMarkets->trading->getAccount();
Status Available at the moment:
"paper-" and "live"
When using the paper- status, make sure you include the hyphen.
Examples
Retrieve your Account
<?php require_once 'vendor/autoload.php'; use LemonMarketsSDK\LemonMarkets; $LemonMarkets = new LemonMarkets('API-KEY', 'STATUS'); $account = $LemonMarkets->trading->getAccount(); print_r("<pre>"); print_r($account); print_r("</pre>");
License
Licensed under MIT.