GithubHelp home page GithubHelp logo

mt4-micro-service-php-client's Introduction

SwaggerClient-php

Mt4 microservice. Call /init/ to get token, which is required in other methods.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Build package: io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com//.git"
    }
  ],
  "require": {
    "/": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\GroupsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$token = "token_example"; // string | 
$accept = "accept_example"; // string | 

try {
    $apiInstance->groupsGet($token, $accept);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsGet: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://apps.noorcm.com:6502/v1

Class Method HTTP request Description
GroupsApi groupsGet GET /groups Get list of groups
InitApi initGet GET /init Init manager
SymbolsApi symbolsGet GET /symbols Get list of market symbols
TradesApi tradesByUserLoginGet GET /trades/{user_login} Get list of trade tickets
TradesApi usersReportPost POST /users/report Get list of user trades
UserApi 5069Get GET /5069 Get user margin
UserApi userAddPost POST /user/add Create user
UserApi userByUserLoginDelete DELETE /user/{user_login} Delete user
UserApi userByUserLoginGet GET /user/{user_login} Get user by user login
UserApi userDepositPost POST /user/deposit Deposit account
UserApi userResetPwdPost POST /user/reset_pwd Reset password
UserApi userUpdatePost POST /user/update Update user
UserApi userWithdrawPost POST /user/withdraw Withdraw account
UsersApi usersGet GET /users Get list of users

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

mt4-micro-service-php-client's People

Contributors

mikha-dev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.