Skip to content

Commit

Permalink
Merge branch 'hummingbot:development' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
mlguys authored Mar 21, 2023
2 parents 221fc96 + e68d562 commit 1a72765
Show file tree
Hide file tree
Showing 1,612 changed files with 152,202 additions and 19,552 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,22 @@ jobs:
sed -i 's/https:\/\/rpc.ankr.com\/avalanche/http:\/\/127.0.0.1:8545\//g' ./conf/avalanche.yml
sed -i 's/https:\/\/rpc.ankr.com\/avalanche_fuji/http:\/\/127.0.0.1:8545\//g' ./conf/avalanche.yml
sed -i 's/https:\/\/rpc.ankr.com\/polygon_mumbai/http:\/\/127.0.0.1:8545\//g' ./conf/polygon.yml
sed -i 's/https:\/\/rpc.ankr.com\/harmony/http:\/\/127.0.0.1:8545\//g' ./conf/harmony.yml
sed -i 's/https:\/\/api.s0.b.hmny.io/http:\/\/127.0.0.1:8545\//g' ./conf/harmony.yml
sed -i 's/https:\/\/data-seed-prebsc-1-s1.binance.org:8545/http:\/\/127.0.0.1:8545\//g' ./conf/binance-smart-chain.yml
sed -i 's/https:\/\/rpc.ankr.com\/bsc/http:\/\/127.0.0.1:8545\//g' ./conf/binance-smart-chain.yml
sed -i 's/https:\/\/rpc.ankr.com\/bsc_testnet_chapel/http:\/\/127.0.0.1:8545\//g' ./conf/binance-smart-chain.yml
sed -i 's/https:\/\/cosmos-testnet-rpc.allthatnode.com:26657/http:\/\/127.0.0.1:8545\//g' ./conf/cosmos.yml
sed -i 's/https:\/\/cosmos-mainnet-rpc.allthatnode.com:26657/http:\/\/127.0.0.1:8545\//g' ./conf/cosmos.yml
sed -i 's/https:\/\/evm-t3.cronos.org/http:\/\/127.0.0.1:8545\//g' ./conf/cosmos.yml
sed -i 's/https:\/\/evm.cronos.org/http:\/\/127.0.0.1:8545\//g' ./conf/cosmos.yml
sed -i 's/https:\/\/evm-t3.cronos.org/http:\/\/127.0.0.1:8545\//g' ./conf/cronos.yml
sed -i 's/https:\/\/evm.cronos.org/http:\/\/127.0.0.1:8545\//g' ./conf/cronos.yml
- name: Run unit test coverage
if: github.event_name == 'pull_request'
shell: bash
run: |
git fetch --all -q
git checkout -b $GITHUB_SHA
yarn test:cov
DIFF_FILES=`git diff --name-only origin/$GITHUB_BASE_REF ./src/`
./node_modules/.bin/jest --listTests --findRelatedTests ${DIFF_FILES//$'\n'/ }
NODE_OPTIONS=--max-old-space-size=10240 node ./node_modules/.bin/jest --runInBand --coverage --findRelatedTests ${DIFF_FILES//$'\n'/ }
# git diff origin/$GITHUB_BASE_REF | yarn diff-test-coverage -c ./coverage/lcov.info -t lcov -b 50 -l 60
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ certs
*.md
*.yml
coverage
dist
dist
vendor
196 changes: 196 additions & 0 deletions docs/swagger/clob-routes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
paths:
/clob/markets:
get:
tags:
- 'clob'
summary: 'Get the markets for a clob'
operationId: 'markets'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/ClobMarketsRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/ClobMarketResponse'
'404':
description: 'Not found response.'
/clob/orderBook:
get:
tags:
- 'clob'
summary: 'Gets orderbook for a market'
operationId: 'orderBook'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/ClobOrderbookRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/ClobOrderbookResponse'
'404':
description: 'Not found response.'
/clob/ticker:
get:
tags:
- 'clob'
summary: 'Get One or More Tickers'
description: 'Get the information of one, several or all available tickers.'
operationId: 'tickers'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/ClobTickerRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/ClobTickerResponse'
'404':
description: 'Not found response.'
/clob/orders:
post:
tags:
- 'clob'
summary: 'Create One Or More Orders'
description: 'Create one or more orders.'
operationId: 'postOrders'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/ClobPostOrderRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/ClobPostOrderResponse'
'400':
description: 'Bad request response.'
get:
tags:
- 'clob'
summary: 'Get One Or More Orders'
description: 'Get the information of one, several or all orders.'
operationId: 'orders'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/ClobGetOrderRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/ClobGetOrderResponse'
'400':
description: 'Bad request response.'
'404':
description: 'Not found response.'
delete:
tags:
- 'clob'
summary: 'Cancel One Or More Orders Open Orders'
description: 'Cancel one, several or all open orders.'
operationId: 'deleteOrders'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/ClobDeleteOrderRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/ClobDeleteOrderResponse'
'400':
description: 'Bad request response.'
'404':
description: 'Not found response.'
/clob/batchOrders:
post:
tags:
- 'clob'
summary: 'Batch create or delete orders'
description: 'Create or delete orders in batch.'
operationId: 'batchOrders'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/ClobBatchOrdersRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/ClobBatchOrdersResponse'
'400':
description: 'Bad request response.'
/clob/estimateGas:
post:
tags:
- 'clob'
summary: 'Estimate the total gas costs for sending an clob order'
operationId: 'estimateGas'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/NetworkSelectionRequest'
responses:
'200':
schema:
$ref: '#/definitions/EstimateGasResponse'
Loading

0 comments on commit 1a72765

Please sign in to comment.