#1 上传文件至 ''

Merged
AIisAllweNeed merged 1 commits from 1.0 into master 11 months ago
  1. +596
    -0
      CHANGELOG.md
  2. +70
    -0
      appveyor.yml
  3. +137
    -0
      ccxt.php
  4. +12
    -0
      cleanup.sh

+ 596
- 0
CHANGELOG.md View File

@@ -0,0 +1,596 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### 3.0.102 (2023-05-13)

### 3.0.101 (2023-05-12)


### Bug Fixes

* **coinbase:** fetchOrders, fetchOrdersByStatus, fix since ([fb444e5](https://github.com/ccxt/ccxt/commit/fb444e562784ec949a7b034909fd095ea9cc5b52))

### 3.0.100 (2023-05-11)

### 3.0.99 (2023-05-10)

### 3.0.98 (2023-05-09)

### 3.0.97 (2023-05-08)


### Bug Fixes

* **deribit:** fix [#17729](https://github.com/ccxt/ccxt/issues/17729) ([2a5d61a](https://github.com/ccxt/ccxt/commit/2a5d61af37235ca85f72bbbab2440685c68a4d39))

### 3.0.96 (2023-05-06)

### 3.0.95 (2023-05-06)

### 3.0.94 (2023-05-05)


### Bug Fixes

* **whitebit:** signing ([08249c7](https://github.com/ccxt/ccxt/commit/08249c79b6a4680acf0da4f186aa2fc8ce10f6f1))

### 3.0.93 (2023-05-05)

### 3.0.92 (2023-05-04)

### 3.0.91 (2023-05-04)

### 3.0.90 (2023-05-03)

### 3.0.89 (2023-05-02)

### 3.0.88 (2023-05-02)

### 3.0.87 (2023-05-02)

### 3.0.86 (2023-05-01)

### 3.0.85 (2023-05-01)

### 3.0.84 (2023-04-30)

### 3.0.83 (2023-04-29)

### 3.0.82 (2023-04-28)


### Bug Fixes

* **phemex:** watchOrders auth flow ([5a53e1e](https://github.com/ccxt/ccxt/commit/5a53e1e91f4c33bf4c792ed8cbee90ab36f5cd1f))

### 3.0.81 (2023-04-28)

### 3.0.80 (2023-04-27)


### Bug Fixes

* **webpack:** webworkers usage ([bc63ad9](https://github.com/ccxt/ccxt/commit/bc63ad905c5db0c1b3ff1ad62e3eabeb48126c3a))

### 3.0.79 (2023-04-27)

### 3.0.78 (2023-04-26)

### 3.0.77 (2023-04-25)

### 3.0.76 (2023-04-24)


### Features

* **Deribit:** add spot markets ([d561ecf](https://github.com/ccxt/ccxt/commit/d561ecffb0e7f4ca894a6285f0aa1c3d2c097dcc))

### 3.0.75 (2023-04-23)

### 3.0.74 (2023-04-21)

### 3.0.73 (2023-04-20)

### 3.0.72 (2023-04-19)


### Features

* **bitget:** change fetchOpenInterest error type ([026e199](https://github.com/ccxt/ccxt/commit/026e199bf96cca54c3b367ab8031a81c83ad8cc9))

### 3.0.71 (2023-04-18)

### 3.0.70 (2023-04-18)

### 3.0.69 (2023-04-17)

### 3.0.68 (2023-04-17)

### 3.0.67 (2023-04-16)

### 3.0.66 (2023-04-15)


### Bug Fixes

* **bybit:** createOrder v3 stopPrice ([40defcc](https://github.com/ccxt/ccxt/commit/40defccc6fed6a7aeef43c7092cd67659cde842f))

### 3.0.65 (2023-04-15)

### 3.0.64 (2023-04-14)

### 3.0.63 (2023-04-14)

### 3.0.62 (2023-04-12)


### Bug Fixes

* **bybit:** createMarketBuyOrderRequiresPrice ([4948630](https://github.com/ccxt/ccxt/commit/494863020a07bb2fe707acebba41049b714ee77e))

### 3.0.61 (2023-04-11)

### 3.0.60 (2023-04-10)

### 3.0.59 (2023-04-10)

### 3.0.58 (2023-04-09)

### 3.0.57 (2023-04-09)

### 3.0.56 (2023-04-06)

### 3.0.55 (2023-04-06)

### 3.0.54 (2023-04-05)

### 3.0.53 (2023-04-04)

### 3.0.52 (2023-04-04)

### 3.0.51 (2023-04-03)

### 3.0.50 (2023-04-02)

### 3.0.49 (2023-04-02)


### Bug Fixes

* **Phemex:** sandbox v2 ([7729365](https://github.com/ccxt/ccxt/commit/7729365dc40adc1264b54c7d32dc80fd802ca94e))

### 3.0.48 (2023-04-01)


### Bug Fixes

* **gate:** watchOrders and watchMyTrades ([ed81fb6](https://github.com/ccxt/ccxt/commit/ed81fb6169ac28d3877e6a79765963e85954dcc0))

### 3.0.47 (2023-03-31)

### 3.0.46 (2023-03-31)

### 3.0.45 (2023-03-30)


### Bug Fixes

* **types:** python3.7 support ([0487925](https://github.com/ccxt/ccxt/commit/0487925f69dd62e1adc63f527d4cf054d474176d))

### 3.0.44 (2023-03-30)

### 3.0.43 (2023-03-29)

### 3.0.41 (2023-03-28)

### 3.0.40 (2023-03-27)

### 3.0.39 (2023-03-27)

### 3.0.38 (2023-03-27)

### 3.0.37 (2023-03-27)

### 3.0.36 (2023-03-26)

### 3.0.35 (2023-03-25)

### 3.0.34 (2023-03-25)

### 3.0.33 (2023-03-24)

### 3.0.32 (2023-03-24)

### 3.0.31 (2023-03-24)

### 3.0.30 (2023-03-23)


### Bug Fixes

* **bybit,gate:** polluting markets loading ([2ba367e](https://github.com/ccxt/ccxt/commit/2ba367e1869b7c820a4f14c1ea6174b46a913626))

### 3.0.29 (2023-03-23)

### 3.0.27 (2023-03-22)

### 3.0.26 (2023-03-21)


### Bug Fixes

* **kucoin:** handlePong ([756cb79](https://github.com/ccxt/ccxt/commit/756cb79fa2cdc7a34934c8f5cffaac1e6d422958))

### 3.0.25 (2023-03-20)

### 3.0.24 (2023-03-20)

### 3.0.23 (2023-03-19)

### 3.0.22 (2023-03-18)

### 3.0.21 (2023-03-18)

### 3.0.20 (2023-03-18)

### 3.0.19 (2023-03-17)

### 3.0.18 (2023-03-17)

### 3.0.17 (2023-03-16)

### 3.0.16 (2023-03-16)


### Bug Fixes

* **Exchange:** fetchDepositAddresses ([3cf0612](https://github.com/ccxt/ccxt/commit/3cf0612f672c4bd3c5286b08d2bc1e5a735f4879))

### 3.0.15 (2023-03-16)


### Bug Fixes

* **kraken:** watchOrderbook handleDeltas ([ee7b0dc](https://github.com/ccxt/ccxt/commit/ee7b0dcea4eb63210a1e9c6b011cfa995ce55018))

### 3.0.14 (2023-03-16)

### 3.0.13 (2023-03-16)

### 3.0.11 (2023-03-16)

### 3.0.10 (2023-03-15)

### 3.0.9 (2023-03-15)

### 3.0.8 (2023-03-14)

### 3.0.7 (2023-03-14)

### 3.0.6 (2023-03-14)

### 3.0.5 (2023-03-14)

### 3.0.4 (2023-03-13)

### 3.0.3 (2023-03-13)

### 3.0.2 (2023-03-13)

### 3.0.1 (2023-03-13)

### 2.9.16 (2023-03-13)

### 2.9.15 (2023-03-13)

### 2.9.14 (2023-03-13)

### 2.9.13 (2023-03-12)


### Bug Fixes

* **Phemex:** createOrder usd settled contracts [ci deploy] ([cdd673d](https://github.com/ccxt/ccxt/commit/cdd673da65b6d788f6955ea22a209028704bd0e5))

### 2.9.12 (2023-03-11)

### 2.9.11 (2023-03-10)

### 2.9.10 (2023-03-09)

### 2.9.9 (2023-03-09)

### 2.9.8 (2023-03-08)

### 2.9.7 (2023-03-07)

### 2.9.6 (2023-03-06)

### 2.9.5 (2023-03-06)

### 2.9.4 (2023-03-06)

### 2.9.3 (2023-03-06)

### 2.9.2 (2023-03-06)

### 2.9.1 (2023-03-06)

### 2.8.99 (2023-03-06)

### 2.8.98 (2023-03-05)

### 2.8.97 (2023-03-05)

### 2.8.96 (2023-03-05)

### 2.8.95 (2023-03-05)

### 2.8.94 (2023-03-04)


### Bug Fixes

* **bybit:** parseTicker default type ([8a929fa](https://github.com/ccxt/ccxt/commit/8a929fa60908ba4d8ff31bb2b95945c1bf9353e1))

### 2.8.93 (2023-03-04)


### Bug Fixes

* **binance:** stream reconnect ([da96a59](https://github.com/ccxt/ccxt/commit/da96a597f6296524fc0151d2c1bd40974948b71c))

### 2.8.92 (2023-03-04)

### 2.8.91 (2023-03-04)

### 2.8.90 (2023-03-04)

### 2.8.89 (2023-03-04)

### 2.8.88 (2023-03-04)


### Features

* **coinbasepro:** Added bidVolume and askVolume to watchTicker ([86ed8aa](https://github.com/ccxt/ccxt/commit/86ed8aaec409b9447019907024eaa6ad575c5a21))

### 2.8.87 (2023-03-04)

### 2.8.86 (2023-03-04)

### 2.8.85 (2023-03-04)

### 2.8.84 (2023-03-03)

### 2.8.83 (2023-03-03)

### 2.8.82 (2023-03-03)

### 2.8.81 (2023-03-03)


### Bug Fixes

* **phemex:** fix handleSettle ([4754570](https://github.com/ccxt/ccxt/commit/4754570e25168fa8fe9a508edcd62e0270b3ccd5))

### 2.8.80 (2023-03-03)

### 2.8.79 (2023-03-02)

### 2.8.78 (2023-03-02)


### Bug Fixes

* **whitebit:** handle authenticate error ([39cd58c](https://github.com/ccxt/ccxt/commit/39cd58c62843473cb2aa314d80f4916f93007de4))

### 2.8.77 (2023-03-02)

### 2.8.76 (2023-03-02)


### Bug Fixes

* **Gate:** sandbox markets loading ([b564e9d](https://github.com/ccxt/ccxt/commit/b564e9dd4607b0ec2d278fcf5502cfc1e8b5e4cf))

### 2.8.75 (2023-03-02)

### 2.8.74 (2023-03-02)


### Bug Fixes

* **Cex:** incorrect currency precision parsing ([ea6c278](https://github.com/ccxt/ccxt/commit/ea6c278e7d216686bbcbc322af10e3b04970d7bc))

### 2.8.73 (2023-03-02)


### Bug Fixes

* **ascendex:** fix [#17010](https://github.com/ccxt/ccxt/issues/17010) ([fb03e92](https://github.com/ccxt/ccxt/commit/fb03e924662a147ab394698f0958eaee8f91cb7c))

### 2.8.72 (2023-03-02)

### 2.8.71 (2023-03-02)


### Bug Fixes

* **bybit:** setMarginMode rename and leverage ([4fc1fef](https://github.com/ccxt/ccxt/commit/4fc1fef9fe7ce34ff4b44e7a1dc297e5fd4a6875))

### 2.8.70 (2023-03-02)

### 2.8.69 (2023-03-01)


### Bug Fixes

* **Exchange:** restore options ([3fa16bb](https://github.com/ccxt/ccxt/commit/3fa16bba1fa3e533ced07850d1117a73f2fad68a))

### 2.8.68 (2023-03-01)

### 2.8.67 (2023-03-01)


### Bug Fixes

* **Bybit:** timeframe parsing ([9178d79](https://github.com/ccxt/ccxt/commit/9178d792144469882f54eccbacd04155483bb9a9))

### 2.8.66 (2023-03-01)


### Bug Fixes

* **bybit:** remove isUnifiedMarginEnabled from ws ([83f895b](https://github.com/ccxt/ccxt/commit/83f895b025c96a00909cedb61dba3ff78aa0e0e4))

### 2.8.65 (2023-03-01)


### Bug Fixes

* **bybit:** fix fetchOHLCV since ([6025fdc](https://github.com/ccxt/ccxt/commit/6025fdc00b19a280da078832502066fc2bc0f3e5))

### 2.8.64 (2023-03-01)

### 2.8.63 (2023-03-01)

### 2.8.62 (2023-03-01)

### 2.8.61 (2023-03-01)

### 2.8.60 (2023-02-28)


### Bug Fixes

* **exmo:** watchBalance info ([ac097d0](https://github.com/ccxt/ccxt/commit/ac097d088409f5648e18d37735bba3b91688a82e))

### 2.8.59 (2023-02-28)

### 2.8.58 (2023-02-28)

### 2.8.57 (2023-02-28)

### 2.8.56 (2023-02-28)


### Bug Fixes

* **gate:** reset correctly orderbook after invalid nonce error ([309acb6](https://github.com/ccxt/ccxt/commit/309acb66457cc3c1074fcde01cffad224a62e032))

### 2.8.55 (2023-02-28)

### 2.8.54 (2023-02-27)

### 2.8.53 (2023-02-27)

### 2.8.52 (2023-02-27)

### 2.8.51 (2023-02-27)

### 2.8.50 (2023-02-27)

### 2.8.49 (2023-02-27)

### 2.8.48 (2023-02-27)

### 2.8.47 (2023-02-26)

### 2.8.46 (2023-02-26)

### 2.8.45 (2023-02-26)

### 2.8.44 (2023-02-26)

### 2.8.43 (2023-02-26)

### 2.8.42 (2023-02-26)

### 2.8.41 (2023-02-25)

### 2.8.40 (2023-02-25)


### Bug Fixes

* **kucoin:** watchBalance add info and time to balance structure ([27d7c28](https://github.com/ccxt/ccxt/commit/27d7c283a3b8f6186cfd4c1e6824c515b0538ef3))

### 2.8.39 (2023-02-25)

### 2.8.38 (2023-02-25)

### 2.8.37 (2023-02-24)


### Bug Fixes

* **Kucoin:** fix transaction status ([ca5b3d6](https://github.com/ccxt/ccxt/commit/ca5b3d66846dde00e2aaffdd217e746a70fbe2b7))

### 2.8.36 (2023-02-24)


### Bug Fixes

* **Binance:** fix parseTrades margin ([7d52071](https://github.com/ccxt/ccxt/commit/7d52071baa76ec97a3692c3cce7cd534915ce3bb))

### 2.8.35 (2023-02-24)

### 2.8.34 (2023-02-24)


### Features

* **ccxt.d.ts:** add transfer and setLeverage types ([6e2c7d9](https://github.com/ccxt/ccxt/commit/6e2c7d94acbefeee90a02721f1b67bb424629c37))

### 2.8.33 (2023-02-24)

### 2.8.32 (2023-02-23)

### 2.8.31 (2023-02-22)

### 2.8.30 (2023-02-22)

### 2.8.29 (2023-02-22)

### 2.8.28 (2023-02-22)

### 2.8.27 (2023-02-22)

### 2.8.26 (2023-02-22)

### 2.8.25 (2023-02-22)

### 2.8.24 (2023-02-21)


### Bug Fixes

* **Gate:** average price inside parseOrder ([e7e0b25](https://github.com/ccxt/ccxt/commit/e7e0b251bd6e55f4a81ad92e65e11581feb35234))

### 2.8.23 (2023-02-21)

### 2.8.22 (2023-02-21)

### 2.8.21 (2023-02-21)

### 2.8.17 (2023-02-20)

### 2.8.16 (2023-02-18)

### 2.8.15 (2023-02-18)


### Features

* **Binance:** support different ids in editOrder ([f0ee83b](https://github.com/ccxt/ccxt/commit/f0ee83bead5ac41e1231b528bab94afe0f0d32f8))

### 2.8.14 (2023-02-18)


### Bug Fixes

* **Bitget:** fetchLeverage method ([8fff1e4](https://github.com/ccxt/ccxt/commit/8fff1e430a811259df98f46ec793977c73ab226e))

### 2.8.13 (2023-02-18)

+ 70
- 0
appveyor.yml View File

@@ -0,0 +1,70 @@
environment:
matrix:
- nodejs_version: '16'
install:
- ps: Install-Product node $env:nodejs_version
- set LIB=C:\OpenSSL-Win64\lib;%LIB%
- set INCLUDE=C:\OpenSSL-Win64\include;%INCLUDE%
- set CI=true
# - npm install --global npm@latest
- set PATH=%APPDATA%\npm;C:\Python38;C:\Python38\Scripts;%PATH%
# Remove python2.7 from path
- set PATH=%PATH:C:\Python27;=%
- set PATH=%PATH:C:\Python27\Scripts;=%
- echo %PATH%
- npm install
- python --version
- pip --version
- python -m pip install --upgrade pip setuptools
- pip install tox
- pip install requests
- pip install cryptography
- set PATH=C:\Program Files\curl;%PATH%
- setx PATH "%PATH%"
- ps: Set-Service wuauserv -StartupType Manual
- cinst -y php --version 8.1.10 --allow-empty-checksums
- cinst composer -i -y
# - php -i
- cd c:\tools\php81
- copy php.ini-production php.ini
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_gmp.dll >> php.ini
- echo extension=php_openssl.dll >> php.ini
- cd %APPVEYOR_BUILD_FOLDER%
- refreshenv
- composer install
matrix:
fast_finish: true
build: off
clone_depth: 1
test_script:
- refreshenv
- node --version
- npm --version
- python --version
- npm run force-build
# - npm run test-base
cache:
- '%APPDATA%\npm-cache'
- '%LOCALAPPDATA%\pip\Cache'
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
# - C:\ProgramData\chocolatey\bin
# - C:\ProgramData\chocolatey\lib
# - C:\tools\php81
- .cache
after_build:
# Remove old or huge cache files to hopefully not exceed the 1GB cache limit.
#
# If the cache limit is reached, the cache will not be updated (of not even
# created in the first run). So this is a trade of between keeping the cache
# current and having a cache at all.
# NB: This is done only `on_success` since the cache in uploaded only on
# success anyway.
- C:\cygwin\bin\find "%LOCALAPPDATA%\pip" -type f -mtime +360 -delete
- C:\cygwin\bin\find "%LOCALAPPDATA%\pip" -type f -size +10M -delete
- C:\cygwin\bin\find "%LOCALAPPDATA%\pip" -empty -delete
# Show size of cache
- C:\cygwin\bin\du -hs "%LOCALAPPDATA%\pip\Cache"

+ 137
- 0
ccxt.php View File

@@ -0,0 +1,137 @@
<?php

/*

MIT License

Copyright (c) 2017 Igor Kroitor

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

*/

//-----------------------------------------------------------------------------

namespace ccxt;

if (defined('PATH_TO_CCXT')) {
return;
}

define('PATH_TO_CCXT', __DIR__ . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR);
define('PATH_TO_WS_CCXT', __DIR__ . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'pro' . DIRECTORY_SEPARATOR);
define('PATH_TO_CCXT_ASYNC', PATH_TO_CCXT . 'async' . DIRECTORY_SEPARATOR);

spl_autoload_register(function ($class) {
// used to include static dependencies
$PATH = PATH_TO_CCXT . 'static_dependencies/';
if (strpos($class, 'kornrunner') !== false) {
$version = phpversion();
if (intval(explode('.', $version)[0]) < 7) {
throw new \RuntimeException($class . " requires php7 or greater, your version: " . $version);
}
}
$class_name = str_replace('kornrunner\\Solidity', 'kornrunner/solidity/src/Solidity', $class);
$class_name = str_replace('kornrunner\\Keccak', 'kornrunner/keccak/src/Keccak', $class_name);
$class_name = str_replace('Elliptic\\', 'elliptic-php/lib/', $class_name);
$class_name = str_replace('\\', DIRECTORY_SEPARATOR, $class_name);
$file = $PATH . $class_name . '.php';
if (file_exists($file)) {
require_once $file;
}
});

require_once PATH_TO_CCXT . 'BaseError.php';
require_once PATH_TO_CCXT . 'ExchangeError.php';
require_once PATH_TO_CCXT . 'AuthenticationError.php';
require_once PATH_TO_CCXT . 'PermissionDenied.php';
require_once PATH_TO_CCXT . 'AccountNotEnabled.php';
require_once PATH_TO_CCXT . 'AccountSuspended.php';
require_once PATH_TO_CCXT . 'ArgumentsRequired.php';
require_once PATH_TO_CCXT . 'BadRequest.php';
require_once PATH_TO_CCXT . 'BadSymbol.php';
require_once PATH_TO_CCXT . 'MarginModeAlreadySet.php';
require_once PATH_TO_CCXT . 'BadResponse.php';
require_once PATH_TO_CCXT . 'NullResponse.php';
require_once PATH_TO_CCXT . 'InsufficientFunds.php';
require_once PATH_TO_CCXT . 'InvalidAddress.php';
require_once PATH_TO_CCXT . 'AddressPending.php';
require_once PATH_TO_CCXT . 'InvalidOrder.php';
require_once PATH_TO_CCXT . 'OrderNotFound.php';
require_once PATH_TO_CCXT . 'OrderNotCached.php';
require_once PATH_TO_CCXT . 'CancelPending.php';
require_once PATH_TO_CCXT . 'OrderImmediatelyFillable.php';
require_once PATH_TO_CCXT . 'OrderNotFillable.php';
require_once PATH_TO_CCXT . 'DuplicateOrderId.php';
require_once PATH_TO_CCXT . 'NotSupported.php';
require_once PATH_TO_CCXT . 'NetworkError.php';
require_once PATH_TO_CCXT . 'DDoSProtection.php';
require_once PATH_TO_CCXT . 'RateLimitExceeded.php';
require_once PATH_TO_CCXT . 'ExchangeNotAvailable.php';
require_once PATH_TO_CCXT . 'OnMaintenance.php';
require_once PATH_TO_CCXT . 'InvalidNonce.php';
require_once PATH_TO_CCXT . 'RequestTimeout.php';


require_once PATH_TO_WS_CCXT . 'ClientTrait.php';
require_once PATH_TO_CCXT . 'Precise.php';
require_once PATH_TO_CCXT . 'Exchange.php';
require_once PATH_TO_CCXT_ASYNC . 'Exchange.php';


$autoloadFile = __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
if (file_exists($autoloadFile)) {
require_once $autoloadFile;
}

spl_autoload_register(function ($class_name) {
$sections = explode("\\", $class_name);
if (in_array("ccxt\\pro",$sections)) {
$class_name = str_replace("ccxt\\pro\\", "", $class_name);
$sections = explode("\\", $class_name);
$class_name = str_replace ("ccxt\\pro\\", "", $class_name);
$file = PATH_TO_WS_CCXT . $class_name . '.php';
if (file_exists ($file)) {
require_once $file;
}
return;
}

$class_name = str_replace("ccxt\\", "", $class_name);
$sections = explode("\\", $class_name);

$file = PATH_TO_CCXT . implode(DIRECTORY_SEPARATOR, $sections) . '.php';
if (file_exists($file)) {
require_once $file;
}
});

// require_once __DIR__ . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'pro.php';


namespace ccxt\pro;
require_once PATH_TO_WS_CCXT . 'Future.php';
require_once PATH_TO_WS_CCXT . 'Client.php';
require_once PATH_TO_WS_CCXT . 'OrderBook.php';
require_once PATH_TO_WS_CCXT . 'OrderBookSide.php';
require_once PATH_TO_WS_CCXT . 'BaseCache.php';
require_once PATH_TO_WS_CCXT . 'ArrayCache.php';
require_once PATH_TO_WS_CCXT . 'ArrayCacheByTimestamp.php';
require_once PATH_TO_WS_CCXT . 'ArrayCacheBySymbolById.php';
require_once PATH_TO_WS_CCXT . 'Exchange.php';

+ 12
- 0
cleanup.sh View File

@@ -0,0 +1,12 @@
#!/bin/bash
git checkout HEAD package.json
git checkout HEAD package-lock.json
git checkout HEAD yarn.lock
git checkout HEAD README.md
git checkout HEAD js
git checkout HEAD ts/ccxt.ts
git checkout HEAD ts/src/abstract
git checkout HEAD python
git checkout HEAD php
git checkout HEAD dist
git checkout HEAD examples

Loading…
Cancel
Save