Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync gateway / gateway development -> staging #91

Merged
merged 108 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
b7015b9
Expose derivative markets, investigate derivative orders
Feb 27, 2023
76a3885
Update injectivelabs dependencies, create derivativeOrders
Mar 1, 2023
4ff4996
Cancel orders
Mar 2, 2023
f203a57
Derivative orderbook
Mar 2, 2023
c250d43
Add validator
Mar 2, 2023
54d5683
Funding payments
Mar 2, 2023
b8aeb2e
Merge branch 'development' of github.com:CoinAlpha/gateway into feat/…
Mar 2, 2023
27431be
calculateMargin
Mar 6, 2023
9fd3e81
Unit tests for margin
Mar 6, 2023
1f585be
format
Mar 6, 2023
d3f05e7
Add unit tests
Mar 6, 2023
2f8f098
Test fundingRates route
Mar 6, 2023
b5377fa
Fix test that was not passing
Mar 6, 2023
3cd3a90
Funding Payments unit tests
Mar 6, 2023
4000d40
Update swagger documentation
Mar 6, 2023
7ccc383
Fix orderbook and markets for PERP
Mar 7, 2023
99a4c1c
Fix orders for PERP
Mar 7, 2023
3757b00
Fix manual and unit tests
Mar 7, 2023
b5d4b1f
Merge main injective branch
Mar 7, 2023
024009b
Split spot and perp
Mar 7, 2023
88789ee
Builds but still need to fix validation
Mar 7, 2023
7bb6a2a
Add validator
Mar 7, 2023
0ed6839
Complete update for separate injective perp connector
Mar 7, 2023
b556e2d
Redirect code
Mar 7, 2023
9d244bc
Pull in development
Mar 8, 2023
9c0d676
zigzag
Mar 13, 2023
24a4b95
Merge development branch
Mar 13, 2023
94ba6f1
request
Mar 13, 2023
6fac5f9
...
Mar 13, 2023
80ef237
(rename) rename injective-perp to injective_perpetual for b etter sta…
CrimsonJacket Mar 14, 2023
8a1a43b
(fix) Add documentation for injective perpetual routes
Mar 14, 2023
fed56f8
(feat) injective.perp.ts support get subaccount positions for specifi…
Mar 14, 2023
7daf185
(feat) Add new route /clob/perp/positions
Mar 14, 2023
03d861a
(fix) fundingPayments: collect all paginated data, filter by provided…
Mar 14, 2023
f6c3065
(fix) fundingRates gets all data for the market
Mar 14, 2023
9776f42
(fix) limit fundingRates
Mar 14, 2023
92faede
(fix) unit tests
Mar 14, 2023
355a2e9
Merge branch 'development' of github.com:hummingbot/gateway into feat…
Mar 14, 2023
1965ad8
(fix) Add missing route in swagger documentation
Mar 14, 2023
c4a20f5
Merge branch 'development' of github.com:hummingbot/gateway into feat…
Mar 15, 2023
e25a041
(fix) Add tests for the positions route
Mar 15, 2023
3d5944a
Merge development
Mar 15, 2023
2e2ccd2
(feat) add POST /clob/perp/positions curl command
CrimsonJacket Mar 16, 2023
cc84be9
store notes
Mar 16, 2023
8179b8d
(feat) Get order by orderHash
Mar 16, 2023
e9b9645
(feat) Add more filtering options to injective.perp
Mar 16, 2023
465fbab
(fix) fix type of orderTypes
Mar 16, 2023
a143b0a
(feat) add clob/perp/order/trades
Mar 17, 2023
d1162ec
(remove) remove isDerivative parameter in injective_delete_perp_order…
CrimsonJacket Mar 17, 2023
edd2697
(refactor/fix) refactor /clob/perp/order/trades to use POST HTTP Meth…
CrimsonJacket Mar 17, 2023
5840088
(test) include /clob/perp/order/trades into curl commands
CrimsonJacket Mar 17, 2023
699c112
(test) update injective_post_perp_order.json default values
CrimsonJacket Mar 17, 2023
1ace08f
(feat) add clob_perp_funding_info route
CrimsonJacket Mar 17, 2023
e0c18c7
(feat) add route /clob/perp/lastTradePrice
Mar 17, 2023
c0d66aa
(fix) Fix unit tests
Mar 17, 2023
bd2c5bc
(fix) fix lastTradePrice not applying oracleScaleFactor
CrimsonJacket Mar 20, 2023
5f06d4d
(cleanup) some code cleanup
CrimsonJacket Mar 20, 2023
fa92cf4
Fix unit test
Mar 20, 2023
74fc2de
Merge development branch
Mar 20, 2023
f3e2b4f
Merge branch 'development' of github.com:CoinAlpha/gateway into feat/…
Mar 20, 2023
901a74f
(feat) add POST /clob/perp/batchOrders route
CrimsonJacket Mar 20, 2023
26af3b8
Add some utility functions for zigzag
Mar 20, 2023
7a4c531
Implement swap estimate
Mar 21, 2023
be1f525
clean up code
Mar 22, 2023
7edfffe
test get possible routes
Mar 22, 2023
8b61ef4
first orderBookTest
Mar 22, 2023
5f732d7
More orderBook tests
Mar 22, 2023
31367a0
Add estimate tests
Mar 22, 2023
fc32b31
Use token type from uniswap
Mar 23, 2023
1e292dc
zigzag controller
Mar 23, 2023
b33771f
Expose zigzag to amm
Mar 23, 2023
554b33c
temporary update
vic-en Mar 28, 2023
d814fac
update
vic-en Mar 29, 2023
74b6bf1
Merge branch 'development' of https://github.com/CoinAlpha/gateway in…
vic-en Mar 29, 2023
811fb59
complete code
vic-en Mar 29, 2023
a2d3ade
(feat) openocean add bsc,cronos,arbitrum and optimism chains
Mar 27, 2023
03c41c0
(feat) openocean add test files
Mar 27, 2023
5c8d7e9
update tested injective perp doc
vic-en Mar 29, 2023
fce48d1
Merge branch 'development' of https://github.com/CoinAlpha/gateway in…
vic-en Mar 29, 2023
bb8da07
update
vic-en Mar 29, 2023
6bc0da9
update curl test
vic-en Mar 29, 2023
8479d07
(fix) Adds case-sensitive trading pairs handling for Dexalot
petioptrv Mar 30, 2023
0dd9b71
minor refactor
vic-en Mar 30, 2023
17a44c3
update unit test
vic-en Mar 30, 2023
32da9ed
update allowances
vic-en Mar 30, 2023
ed335b2
(fix) Fixes BTC.b decimals in avalanche_tokens.json
petioptrv Mar 31, 2023
f73aea2
(tests) Debugging gh workflow
petioptrv Mar 31, 2023
affc93f
(tests) Debugging gh workflow
petioptrv Mar 31, 2023
8fdd315
(cleanup) Removes debugging message
petioptrv Mar 31, 2023
dc55d62
Merge pull request #80 from CoinAlpha/fix/dexalot_case_sensitivity
fengtality Mar 31, 2023
bf1f736
resolve import issue
vic-en Apr 3, 2023
99330ae
Merge branch 'development' into feat/openocean-updates
rapcmia Apr 4, 2023
04254c0
Update src/amm/amm.controllers.ts
vic-en Apr 4, 2023
401cf0e
Update src/services/common-interfaces.ts
vic-en Apr 4, 2023
a2e9417
Merge pull request #75 from onjeffery/feat/openocean-updates
nikspz Apr 5, 2023
d518c63
fix invalid error
vic-en Apr 6, 2023
4170e34
(fix) package.json on development to dev-1.15.0
nikspz Apr 10, 2023
5b775c5
Merge pull request #88 from hummingbot/(fix)-package.json-on-development
fengtality Apr 10, 2023
22a0acb
Merge branch 'development' into feat/injective_perpetual
petioptrv Apr 12, 2023
30143ef
update contract address
vic-en Apr 13, 2023
eb874fa
update
vic-en Apr 13, 2023
f1eb495
inprove logging when node rejects transaction
vic-en Apr 15, 2023
33e3c71
(feat) Adds missing injective_post_perp_order.json
petioptrv Apr 17, 2023
d77b6d6
Merge branch 'development' into feat/zigzag
aarmoa Apr 19, 2023
c3aa98f
Merge pull request #81 from CoinAlpha/feat/injective_perpetual
fengtality Apr 20, 2023
6a1b09e
resolved connection-manager conflicts
fengtality Apr 20, 2023
42025ed
move clob perp docs to new section
fengtality Apr 20, 2023
5bceec1
Merge pull request #89 from hummingbot/feat/zigzag
fengtality Apr 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
346 changes: 346 additions & 0 deletions docs/swagger/clob-perp-routes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,346 @@
paths:
/clob/perp/markets:
get:
tags:
- 'clob/perp'
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/perp/orderBook:
get:
tags:
- 'clob/perp'
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/perp/ticker:
get:
tags:
- 'clob/perp'
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/perp/orders:
post:
tags:
- 'clob/perp'
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/PerpClobPostOrderRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/ClobPostOrderResponse'
'400':
description: 'Bad request response.'
get:
tags:
- 'clob/perp'
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/perp'
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/perp/batchOrders:
post:
tags:
- 'clob/perp'
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/PerpClobPostBatchOrderRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/ClobPostOrderResponse'
'400':
description: 'Bad request response.'
/clob/perp/order/trades:
get:
tags:
- 'clob/perp'
summary: 'Get trades for an order'
description: 'Retrieves trades for an order.'
operationId: 'trades'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/PerpClobGetOrderTradesRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/PerpClobGetOrderTradesResponse'
'400':
description: 'Bad request response.'
/clob/perp/estimateGas:
post:
tags:
- 'clob/perp'
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'
/clob/perp/funding/rates:
post:
tags:
- 'clob/perp'
summary: 'Get funding rates for a market'
description: 'Get funding rates for a market.'
operationId: 'fundingRates'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/PerpClobFundingRatesRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/PerpClobFundingRatesResponse'
'400':
description: 'Bad request response.'
/clob/perp/funding/payments:
post:
tags:
- 'clob/perp'
summary: 'Get funding payments for a market'
description: 'Get funding payments for a market.'
operationId: 'fundingPayments'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/PerpClobFundingPaymentsRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/PerpClobFundingPaymentsResponse'
'400':
description: 'Bad request response.'
/clob/perp/funding/info:
post:
tags:
- 'clob/perp'
summary: 'Get funding info for a market'
description: 'Get funding info for a market.'
operationId: 'fundinginfo'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/PerpClobFundingInfoRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/PerpClobFundingInfoResponse'
'400':
description: 'Bad request response.'
/clob/perp/positions:
post:
tags:
- 'clob/perp'
summary: 'Get all positions for an address in the provided for markets'
description: 'Get all positions for an address in the provided for markets.'
operationId: 'clobPerpPositions'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/PerpClobPositionsRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/PerpClobPositionsResponse'
'400':
description: 'Bad request response.'
/clob/perp/lastTradePrice:
post:
tags:
- 'clob/perp'
summary: 'Get last trade price for markets'
description: 'Get last trade price for markets.'
operationId: 'lastTradePrice'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'Request body.'
required: true
schema:
$ref: '#/definitions/PerpClobFundingInfoRequest'
responses:
'200':
description: 'Successful response.'
schema:
$ref: '#/definitions/PerpClobLastTradePriceResponse'
'400':
description: 'Bad request response.'
Loading