Download the PHP package cfxmarkets/php-exchange-sdk without Composer
On this page you can find all versions of the php package cfxmarkets/php-exchange-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cfxmarkets/php-exchange-sdk
More information about cfxmarkets/php-exchange-sdk
Files in cfxmarkets/php-exchange-sdk
Package php-exchange-sdk
Short Description A public PHP SDK for accessing the CFX Markets exchange
License MIT
Informations about the package php-exchange-sdk
CFX Markets Exchange SDK for PHP
A public PHP SDK library to access the CFX Markets exchange.
This library helps to facilitate interactions with the CFX Exchange through CFX's exchange REST api.
Usage
Instantiation
The CFX Exchange requires the use of an authenticated API key for all interactions. You should provide your API key and secret to the constructor, along with the API url you'd like to target (usually https://sandbox.apis.cfxtrading.com/exchange
for testing and https://apis.cfxtrading.com/exchange
for production).
Manipulating Objects
You'll probably primarily be interested in fetching, creating, updating, or deleting data objects. To do this, you'll use the peripheral object classes provided by this library, then send instructions to the server via the Client you instantiated along with (optionally) one of the resource objects you've created.
For example, here's how to get a list of assets from the server. This returns a ResourceCollection
that contains Asset
resources:
Here's an example of how you might create an order:
All versions of php-exchange-sdk with dependencies
psr/http-message Version ~1.0
cfxmarkets/php-persistence Version ^0.3.0 || ^0.4.0 || ^0.5.0 || ^0.6.0
cfxmarkets/php-public-models Version ^1.21.0