From 1ca49ab5cd99797672adbc0596a31f0b7ff47483 Mon Sep 17 00:00:00 2001 From: microwavedcola1 Date: Thu, 23 Sep 2021 22:34:23 +0200 Subject: [PATCH] update Signed-off-by: microwavedcola1 --- .gitignore | 6 +- mango-service-v3/index.html | 396 ------------------ .../service-v3.postman_collection.json | 16 +- mango-service-v3/service-v3.yml | 152 ++++--- mango-service-v3/yarn.lock | 133 +++--- 5 files changed, 195 insertions(+), 508 deletions(-) delete mode 100644 mango-service-v3/index.html diff --git a/.gitignore b/.gitignore index 08287a1..848bd72 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ mango-service-v3/node_modules -mango-service-v3/run-local.sh -mango-service-v3/run-generate-docker-image.sh -mango-service-v3/run-generate-api-docs.sh +mango-service-v3/run-dev-server.sh +mango-service-v3/run-build-and-publish-docker-image.sh +mango-service-v3/run-update-api-docs.sh py/.venv py/.idea py/mango_service_v3_py/__pycache__/ diff --git a/mango-service-v3/index.html b/mango-service-v3/index.html deleted file mode 100644 index fe82a15..0000000 --- a/mango-service-v3/index.html +++ /dev/null @@ -1,396 +0,0 @@ - - - - - - service-v3 - - - - - - - - - -

service-v3 (1.0.0)

Download OpenAPI specification:Download

default

positions - get open positions

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "result": [
    ]
}

coins - get all

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "result": [
    ]
}

wallet - balances

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "result": [
    ]
}

markets - get all

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "result": [
    ]
}

markets - get by name

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "result": [
    ]
}

markets - get orderbook by name

query Parameters
depth
integer
Example: depth=30

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "result": {
    }
}

markets - get trades by name

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "result": [
    ]
}

markets - get candles/ohlcv by name

query Parameters
resolution
integer
Example: resolution=60
start_time
integer
Example: start_time=1625922900
end_time
integer
Example: end_time=1631214960

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "result": [
    ]
}

order - get by market

query Parameters
market
string
Example: market=BTC-PERP

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "result": [
    ]
}

order - place order spot

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "market": "BTC/USDC",
  • "side": "buy",
  • "price": 20000,
  • "type": "limit",
  • "size": 0.0001,
  • "reduceOnly": false,
  • "ioc": false,
  • "postOnly": false,
  • "clientId": null
}

order - cancel all

Responses

order - cancel by client_id

Responses

order - cancel by order_id

Responses

- - - - \ No newline at end of file diff --git a/mango-service-v3/service-v3.postman_collection.json b/mango-service-v3/service-v3.postman_collection.json index 2c34451..10fe12b 100644 --- a/mango-service-v3/service-v3.postman_collection.json +++ b/mango-service-v3/service-v3.postman_collection.json @@ -161,15 +161,15 @@ }, { "key": "Content-Length", - "value": "215" + "value": "269" }, { "key": "ETag", - "value": "W/\"d7-2Pm0QSYH0OI5GKtjQG8PAErXDeo\"" + "value": "W/\"10d-Anlhnoh/EcbivfhlZpCuuV8mqsU\"" }, { "key": "Date", - "value": "Thu, 23 Sep 2021 07:36:20 GMT" + "value": "Thu, 23 Sep 2021 20:29:38 GMT" }, { "key": "Connection", @@ -181,7 +181,7 @@ } ], "cookie": [], - "body": "{\n \"success\": true,\n \"result\": [\n {\n \"name\": \"USDC\",\n \"id\": \"USDC\"\n },\n {\n \"name\": \"MNGO\",\n \"id\": \"MNGO\"\n },\n {\n \"name\": \"BTC\",\n \"id\": \"BTC\"\n },\n {\n \"name\": \"ETH\",\n \"id\": \"ETH\"\n },\n {\n \"name\": \"SOL\",\n \"id\": \"SOL\"\n },\n {\n \"name\": \"USDT\",\n \"id\": \"USDT\"\n },\n {\n \"name\": \"SRM\",\n \"id\": \"SRM\"\n }\n ]\n}" + "body": "{\n \"success\": true,\n \"result\": [\n {\n \"name\": \"USDC\",\n \"id\": \"USDC\"\n },\n {\n \"name\": \"MNGO\",\n \"id\": \"MNGO\"\n },\n {\n \"name\": \"BTC\",\n \"id\": \"BTC\"\n },\n {\n \"name\": \"ETH\",\n \"id\": \"ETH\"\n },\n {\n \"name\": \"SOL\",\n \"id\": \"SOL\"\n },\n {\n \"name\": \"USDT\",\n \"id\": \"USDT\"\n },\n {\n \"name\": \"SRM\",\n \"id\": \"SRM\"\n },\n {\n \"name\": \"RAY\",\n \"id\": \"RAY\"\n },\n {\n \"name\": \"COPE\",\n \"id\": \"COPE\"\n }\n ]\n}" } ] }, @@ -322,15 +322,15 @@ }, { "key": "Content-Length", - "value": "2452" + "value": "3586" }, { "key": "ETag", - "value": "W/\"994-rmFTWQRNSXrkfDthEtDuPyUdhGQ\"" + "value": "W/\"e02-YRmxFLVXSYLthxhkA8fbq9xtHVM\"" }, { "key": "Date", - "value": "Thu, 23 Sep 2021 07:36:40 GMT" + "value": "Thu, 23 Sep 2021 20:22:58 GMT" }, { "key": "Connection", @@ -342,7 +342,7 @@ } ], "cookie": [], - "body": "{\n \"success\": true,\n \"result\": [\n {\n \"name\": \"MNGO/USDC\",\n \"baseCurrency\": \"MNGO\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": -0.00104245991960622,\n \"change24h\": 0.10497017397919645,\n \"changeBod\": -0.035456045316767416,\n \"type\": \"spot\",\n \"underlying\": \"MNGO\",\n \"ask\": 0.2905,\n \"bid\": 0.2888,\n \"last\": 0.2904999852180481,\n \"price\": 0.2904999852180481,\n \"priceIncrement\": 0.0001,\n \"sizeIncrement\": 1,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"BTC/USDC\",\n \"baseCurrency\": \"BTC\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": 0.009330555666128336,\n \"change24h\": 0.07534008825160178,\n \"changeBod\": -0.009678892344776814,\n \"type\": \"spot\",\n \"underlying\": \"BTC\",\n \"ask\": 44104.3,\n \"bid\": 44100.7,\n \"last\": 44013.30078125,\n \"price\": 44013.30078125,\n \"priceIncrement\": 0.1,\n \"sizeIncrement\": 0.0001,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"ETH/USDC\",\n \"baseCurrency\": \"ETH\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": 0.005214312404759716,\n \"change24h\": 0.11286709397685381,\n \"changeBod\": -0.012224691295179956,\n \"type\": \"spot\",\n \"underlying\": \"ETH\",\n \"ask\": 3131.98,\n \"bid\": 3129.89,\n \"last\": 3117.449951171875,\n \"price\": 3117.449951171875,\n \"priceIncrement\": 0.01,\n \"sizeIncrement\": 0.001,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"SOL/USDC\",\n \"baseCurrency\": \"SOL\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": 0.017761307651784006,\n \"change24h\": 0.19738252608394014,\n \"changeBod\": -0.003134196236629614,\n \"type\": \"spot\",\n \"underlying\": \"SOL\",\n \"ask\": 148.735,\n \"bid\": 148.734,\n \"last\": 149,\n \"price\": 149,\n \"priceIncrement\": 0.001,\n \"sizeIncrement\": 0.1,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"USDT/USDC\",\n \"baseCurrency\": \"USDT\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": 0,\n \"change24h\": 0.0004001268051988224,\n \"changeBod\": -0.0002998106640841958,\n \"type\": \"spot\",\n \"underlying\": \"USDT\",\n \"ask\": 1.0005,\n \"bid\": 1.0003,\n \"last\": 1.0003999471664429,\n \"price\": 1.0003999471664429,\n \"priceIncrement\": 0.0001,\n \"sizeIncrement\": 1,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"SRM/USDC\",\n \"baseCurrency\": \"SRM\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": 0.009140134390667456,\n \"change24h\": 0.17148090555117187,\n \"changeBod\": -0.010022627150418491,\n \"type\": \"spot\",\n \"underlying\": \"SRM\",\n \"ask\": 8.379,\n \"bid\": 8.363,\n \"last\": 8.355999946594238,\n \"price\": 8.355999946594238,\n \"priceIncrement\": 0.001,\n \"sizeIncrement\": 0.1,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"BTC-PERP\",\n \"baseCurrency\": \"BTC\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 2655725.30683,\n \"change1h\": 0.013732274607999357,\n \"change24h\": 0.07514224962752904,\n \"changeBod\": -0.009334104720180893,\n \"type\": \"futures\",\n \"underlying\": \"BTC\",\n \"ask\": 44203,\n \"bid\": 44158.8,\n \"last\": 44225,\n \"price\": 44225,\n \"priceIncrement\": 0.1,\n \"sizeIncrement\": 0.0001,\n \"volumeUsd24h\": 2655725.30683\n }\n ]\n}" + "body": "{\n \"success\": true,\n \"result\": [\n {\n \"name\": \"MNGO/USDC\",\n \"baseCurrency\": \"MNGO\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": 0.011748958194213307,\n \"change24h\": 0.10497017397919645,\n \"changeBod\": -0.06941209645738362,\n \"type\": \"spot\",\n \"underlying\": \"MNGO\",\n \"ask\": 0.3014,\n \"bid\": 0.3009,\n \"last\": 0.3010999858379364,\n \"price\": 0.3010999858379364,\n \"priceIncrement\": 0.0001,\n \"sizeIncrement\": 1,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"BTC/USDC\",\n \"baseCurrency\": \"BTC\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": -0.0006023196102002198,\n \"change24h\": 0.07534008825160178,\n \"changeBod\": -0.023842158866775508,\n \"type\": \"spot\",\n \"underlying\": \"BTC\",\n \"ask\": 44548.9,\n \"bid\": 44542.5,\n \"last\": 44651.8984375,\n \"price\": 44651.8984375,\n \"priceIncrement\": 0.1,\n \"sizeIncrement\": 0.0001,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"ETH/USDC\",\n \"baseCurrency\": \"ETH\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": -0.0011764022806535397,\n \"change24h\": 0.11286709397685381,\n \"changeBod\": -0.015943185029389125,\n \"type\": \"spot\",\n \"underlying\": \"ETH\",\n \"ask\": 3128.36,\n \"bid\": 3128.35,\n \"last\": 3129.22998046875,\n \"price\": 3129.22998046875,\n \"priceIncrement\": 0.01,\n \"sizeIncrement\": 0.001,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"SOL/USDC\",\n \"baseCurrency\": \"SOL\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": 0.005815162979254202,\n \"change24h\": 0.19738252608394014,\n \"changeBod\": 0.0008962996612425303,\n \"type\": \"spot\",\n \"underlying\": \"SOL\",\n \"ask\": 147.977,\n \"bid\": 147.976,\n \"last\": 148.39999389648438,\n \"price\": 148.39999389648438,\n \"priceIncrement\": 0.001,\n \"sizeIncrement\": 0.1,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"USDT/USDC\",\n \"baseCurrency\": \"USDT\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": -0.0002998106640841958,\n \"change24h\": 0.0004001268051988224,\n \"changeBod\": 0,\n \"type\": \"spot\",\n \"underlying\": \"USDT\",\n \"ask\": 1.0002,\n \"bid\": 1.0001,\n \"last\": 1.000100016593933,\n \"price\": 1.000100016593933,\n \"priceIncrement\": 0.0001,\n \"sizeIncrement\": 1,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"SRM/USDC\",\n \"baseCurrency\": \"SRM\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": 0.0055427640345401905,\n \"change24h\": 0.17148090555117187,\n \"changeBod\": -0.03061106244377288,\n \"type\": \"spot\",\n \"underlying\": \"SRM\",\n \"ask\": 8.584,\n \"bid\": 8.581,\n \"last\": 8.586999893188477,\n \"price\": 8.586999893188477,\n \"priceIncrement\": 0.001,\n \"sizeIncrement\": 0.1,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"RAY/USDC\",\n \"baseCurrency\": \"RAY\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": 0.005089718359209593,\n \"change24h\": 0.13928952392352087,\n \"changeBod\": -0.07953655366580142,\n \"type\": \"spot\",\n \"underlying\": \"RAY\",\n \"ask\": 11.576,\n \"bid\": 11.513,\n \"last\": 11.460000038146973,\n \"price\": 11.460000038146973,\n \"priceIncrement\": 0.001,\n \"sizeIncrement\": 0.1,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"COPE/USDC\",\n \"baseCurrency\": \"COPE\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 0,\n \"change1h\": 0.010653081408407839,\n \"change24h\": 0.16617556935957428,\n \"changeBod\": -0.07962964986577366,\n \"type\": \"spot\",\n \"underlying\": \"COPE\",\n \"ask\": 2.17,\n \"bid\": 2.154,\n \"last\": 2.1600000858306885,\n \"price\": 2.1600000858306885,\n \"priceIncrement\": 0.001,\n \"sizeIncrement\": 0.001,\n \"volumeUsd24h\": 0\n },\n {\n \"name\": \"BTC-PERP\",\n \"baseCurrency\": \"BTC\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 1281273.38619,\n \"change1h\": 0.00005133289030753979,\n \"change24h\": 0.07514224962752904,\n \"changeBod\": -0.022951987551960477,\n \"type\": \"futures\",\n \"underlying\": \"BTC\",\n \"ask\": 44701.7,\n \"bid\": 44701.6,\n \"last\": 44841.3984375,\n \"price\": 44841.3984375,\n \"priceIncrement\": 0.1,\n \"sizeIncrement\": 0.0001,\n \"volumeUsd24h\": 1281273.38619\n },\n {\n \"name\": \"SOL-PERP\",\n \"baseCurrency\": \"SOL\",\n \"quoteCurrency\": \"USDC\",\n \"quoteVolume24h\": 2712627.9067,\n \"change1h\": 0.0004682451126406075,\n \"change24h\": 0.17839077057911942,\n \"changeBod\": -0.00013510009773373964,\n \"type\": \"futures\",\n \"underlying\": \"SOL\",\n \"ask\": 148.91,\n \"bid\": 148.35,\n \"last\": 148.07000732421875,\n \"price\": 148.07000732421875,\n \"priceIncrement\": 0.01,\n \"sizeIncrement\": 0.01,\n \"volumeUsd24h\": 2712627.9067\n }\n ]\n}" } ] }, diff --git a/mango-service-v3/service-v3.yml b/mango-service-v3/service-v3.yml index 2e3e137..f618d34 100644 --- a/mango-service-v3/service-v3.yml +++ b/mango-service-v3/service-v3.yml @@ -77,15 +77,15 @@ paths: Content-Length: schema: type: integer - example: '215' + example: '269' ETag: schema: type: string - example: W/"d7-2Pm0QSYH0OI5GKtjQG8PAErXDeo" + example: W/"10d-Anlhnoh/EcbivfhlZpCuuV8mqsU" Date: schema: type: string - example: Thu, 23 Sep 2021 07:36:20 GMT + example: Thu, 23 Sep 2021 20:29:38 GMT Connection: schema: type: string @@ -115,6 +115,10 @@ paths: id: USDT - name: SRM id: SRM + - name: RAY + id: RAY + - name: COPE + id: COPE /wallet/balances: get: tags: @@ -221,15 +225,15 @@ paths: Content-Length: schema: type: integer - example: '2452' + example: '3586' ETag: schema: type: string - example: W/"994-rmFTWQRNSXrkfDthEtDuPyUdhGQ" + example: W/"e02-YRmxFLVXSYLthxhkA8fbq9xtHVM" Date: schema: type: string - example: Thu, 23 Sep 2021 07:36:40 GMT + example: Thu, 23 Sep 2021 20:22:58 GMT Connection: schema: type: string @@ -249,15 +253,15 @@ paths: baseCurrency: MNGO quoteCurrency: USDC quoteVolume24h: 0 - change1h: -0.00104245991960622 + change1h: 0.011748958194213307 change24h: 0.10497017397919645 - changeBod: -0.035456045316767416 + changeBod: -0.06941209645738362 type: spot underlying: MNGO - ask: 0.2905 - bid: 0.2888 - last: 0.2904999852180481 - price: 0.2904999852180481 + ask: 0.3014 + bid: 0.3009 + last: 0.3010999858379364 + price: 0.3010999858379364 priceIncrement: 0.0001 sizeIncrement: 1 volumeUsd24h: 0 @@ -265,15 +269,15 @@ paths: baseCurrency: BTC quoteCurrency: USDC quoteVolume24h: 0 - change1h: 0.009330555666128336 + change1h: -0.0006023196102002198 change24h: 0.07534008825160178 - changeBod: -0.009678892344776814 + changeBod: -0.023842158866775508 type: spot underlying: BTC - ask: 44104.3 - bid: 44100.7 - last: 44013.30078125 - price: 44013.30078125 + ask: 44548.9 + bid: 44542.5 + last: 44651.8984375 + price: 44651.8984375 priceIncrement: 0.1 sizeIncrement: 0.0001 volumeUsd24h: 0 @@ -281,15 +285,15 @@ paths: baseCurrency: ETH quoteCurrency: USDC quoteVolume24h: 0 - change1h: 0.005214312404759716 + change1h: -0.0011764022806535397 change24h: 0.11286709397685381 - changeBod: -0.012224691295179956 + changeBod: -0.015943185029389125 type: spot underlying: ETH - ask: 3131.98 - bid: 3129.89 - last: 3117.449951171875 - price: 3117.449951171875 + ask: 3128.36 + bid: 3128.35 + last: 3129.22998046875 + price: 3129.22998046875 priceIncrement: 0.01 sizeIncrement: 0.001 volumeUsd24h: 0 @@ -297,15 +301,15 @@ paths: baseCurrency: SOL quoteCurrency: USDC quoteVolume24h: 0 - change1h: 0.017761307651784006 + change1h: 0.005815162979254202 change24h: 0.19738252608394014 - changeBod: -0.003134196236629614 + changeBod: 0.0008962996612425303 type: spot underlying: SOL - ask: 148.735 - bid: 148.734 - last: 149 - price: 149 + ask: 147.977 + bid: 147.976 + last: 148.39999389648438 + price: 148.39999389648438 priceIncrement: 0.001 sizeIncrement: 0.1 volumeUsd24h: 0 @@ -313,15 +317,15 @@ paths: baseCurrency: USDT quoteCurrency: USDC quoteVolume24h: 0 - change1h: 0 + change1h: -0.0002998106640841958 change24h: 0.0004001268051988224 - changeBod: -0.0002998106640841958 + changeBod: 0 type: spot underlying: USDT - ask: 1.0005 - bid: 1.0003 - last: 1.0003999471664429 - price: 1.0003999471664429 + ask: 1.0002 + bid: 1.0001 + last: 1.000100016593933 + price: 1.000100016593933 priceIncrement: 0.0001 sizeIncrement: 1 volumeUsd24h: 0 @@ -329,34 +333,82 @@ paths: baseCurrency: SRM quoteCurrency: USDC quoteVolume24h: 0 - change1h: 0.009140134390667456 + change1h: 0.0055427640345401905 change24h: 0.17148090555117187 - changeBod: -0.010022627150418491 + changeBod: -0.03061106244377288 type: spot underlying: SRM - ask: 8.379 - bid: 8.363 - last: 8.355999946594238 - price: 8.355999946594238 + ask: 8.584 + bid: 8.581 + last: 8.586999893188477 + price: 8.586999893188477 priceIncrement: 0.001 sizeIncrement: 0.1 volumeUsd24h: 0 + - name: RAY/USDC + baseCurrency: RAY + quoteCurrency: USDC + quoteVolume24h: 0 + change1h: 0.005089718359209593 + change24h: 0.13928952392352087 + changeBod: -0.07953655366580142 + type: spot + underlying: RAY + ask: 11.576 + bid: 11.513 + last: 11.460000038146973 + price: 11.460000038146973 + priceIncrement: 0.001 + sizeIncrement: 0.1 + volumeUsd24h: 0 + - name: COPE/USDC + baseCurrency: COPE + quoteCurrency: USDC + quoteVolume24h: 0 + change1h: 0.010653081408407839 + change24h: 0.16617556935957428 + changeBod: -0.07962964986577366 + type: spot + underlying: COPE + ask: 2.17 + bid: 2.154 + last: 2.1600000858306885 + price: 2.1600000858306885 + priceIncrement: 0.001 + sizeIncrement: 0.001 + volumeUsd24h: 0 - name: BTC-PERP baseCurrency: BTC quoteCurrency: USDC - quoteVolume24h: 2655725.30683 - change1h: 0.013732274607999357 + quoteVolume24h: 1281273.38619 + change1h: 0.00005133289030753979 change24h: 0.07514224962752904 - changeBod: -0.009334104720180893 + changeBod: -0.022951987551960477 type: futures underlying: BTC - ask: 44203 - bid: 44158.8 - last: 44225 - price: 44225 + ask: 44701.7 + bid: 44701.6 + last: 44841.3984375 + price: 44841.3984375 priceIncrement: 0.1 sizeIncrement: 0.0001 - volumeUsd24h: 2655725.30683 + volumeUsd24h: 1281273.38619 + - name: SOL-PERP + baseCurrency: SOL + quoteCurrency: USDC + quoteVolume24h: 2712627.9067 + change1h: 0.0004682451126406075 + change24h: 0.17839077057911942 + changeBod: -0.00013510009773373964 + type: futures + underlying: SOL + ask: 148.91 + bid: 148.35 + last: 148.07000732421875 + price: 148.07000732421875 + priceIncrement: 0.01 + sizeIncrement: 0.01 + volumeUsd24h: 2712627.9067 /markets/BTC-PERP: get: tags: diff --git a/mango-service-v3/yarn.lock b/mango-service-v3/yarn.lock index 65d1903..9685708 100644 --- a/mango-service-v3/yarn.lock +++ b/mango-service-v3/yarn.lock @@ -10,9 +10,9 @@ regenerator-runtime "^0.13.4" "@blockworks-foundation/mango-client@^3.0.13": - version "3.0.13" - resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-client/-/mango-client-3.0.13.tgz#a1ef6187ed4155c43d219617a9176a8515ba24c4" - integrity sha512-7VqkOFuFKlUN2IHLC20H+mZznBDX5vb283MJqlIAFZjjYSC09Avo/Il11gZhtm0JOL51mmrlgSGTCzZHk1QCGQ== + version "3.0.24" + resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-client/-/mango-client-3.0.24.tgz#5cd56317411326558dda1b4d1fe31ec6c8e8493b" + integrity sha512-iOlle6xlOYR0UlAfGgnrjSFSSWjvklUDoFcHbCPNoMJQPdlzf7hnKCBOnKQYXmZg6LsDYp78cObNJIUhHNXkGw== dependencies: "@project-serum/serum" "0.13.55" "@project-serum/sol-wallet-adapter" "^0.2.0" @@ -22,7 +22,6 @@ big.js "^6.1.1" bigint-buffer "^1.1.5" bn.js "^5.1.0" - borsh "https://github.com/defactojob/borsh-js#field-mapper" buffer-layout "^1.2.1" yargs "^17.0.1" @@ -130,9 +129,9 @@ tweetnacl "^1.0.0" "@solana/web3.js@^1.17.0", "@solana/web3.js@^1.21.0": - version "1.24.2" - resolved "https://registry.yarnpkg.com/@solana/web3.js/-/web3.js-1.24.2.tgz#ff98c635effac3c49bfe757bf182792feb973fc6" - integrity sha512-zpW/QumeNBg8BfXB4LWFjrRlutWhwCKOaffP0+V0SF47pJsH/eShTOCl0I3Dibv6KeVgJzauNyKug6wnZVtXVQ== + version "1.29.0" + resolved "https://registry.yarnpkg.com/@solana/web3.js/-/web3.js-1.29.0.tgz#61cb40e2190f13ae8084d20012cb81f8fade78fa" + integrity sha512-5427ZZ7l34xdf07EU6e/8IDQ0gr87lMAU+6UHGrlmOp+lhM39rwN6RmRoOiQYailH15TM5pM3YeQO8KZXEOMIA== dependencies: "@babel/runtime" "^7.12.5" "@solana/buffer-layout" "^3.0.0" @@ -140,10 +139,10 @@ borsh "^0.4.0" bs58 "^4.0.1" buffer "6.0.1" + cross-fetch "^3.1.4" crypto-hash "^1.2.2" jayson "^3.4.4" js-sha3 "^0.8.0" - node-fetch "^2.6.1" rpc-websockets "^7.4.2" secp256k1 "^4.0.2" superstruct "^0.14.2" @@ -223,9 +222,9 @@ "@types/serve-static" "*" "@types/lodash@^4.14.159": - version "4.14.172" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.172.tgz#aad774c28e7bfd7a67de25408e03ee5a8c3d028a" - integrity sha512-/BHF5HAx3em7/KkzVKm3LrsD6HZAXuXO1AJZQ3cRRBZj4oHZDviWPYu0aEplAqDFNHZPW6d3G7KN+ONcCCC7pw== + version "4.14.173" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.173.tgz#9d3b674c67a26cf673756f6aca7b429f237f91ed" + integrity sha512-vv0CAYoaEjCw/mLy96GBTnRoZrSxkGE0BKzKimdR8P3OzrNYNvBgtW7p055A+E8C31vXNUhWKoFCbhq7gbyhFg== "@types/mime@^1": version "1.3.2" @@ -240,14 +239,14 @@ "@types/node" "*" "@types/node@*": - version "16.7.10" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.7.10.tgz#7aa732cc47341c12a16b7d562f519c2383b6d4fc" - integrity sha512-S63Dlv4zIPb8x6MMTgDq5WWRJQe56iBEY0O3SOFA9JrRienkOVDXSXBjjJw6HTNQYSE2JI6GMCR6LVbIMHJVvA== + version "16.9.6" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.9.6.tgz#040a64d7faf9e5d9e940357125f0963012e66f04" + integrity sha512-YHUZhBOMTM3mjFkXVcK+WwAcYmyhe1wL4lfqNtzI0b3qAy7yuSetnM7QJazgE5PFmgVTNGiLOgRFfJMqW7XpSQ== "@types/node@^12.12.54": - version "12.20.23" - resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.23.tgz#d0d5885bb885ee9b1ed114a04ea586540a1b2e2a" - integrity sha512-FW0q7NI8UnjbKrJK8NGr6QXY69ATw9IFe6ItIo5yozPwA9DU/xkhiPddctUVyrmFXvyFYerYgQak/qu200UBDw== + version "12.20.26" + resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.26.tgz#a6db0d0577e40844f0b28c2a9289c09e5b44b541" + integrity sha512-gIt+h4u2uTho2bsH1K250fUv5fHU71ET1yWT7bM4523zV/XrFb9jlWBOV4DO8FpscY+Sz/WEr1EEjIP2H4yumQ== "@types/pino-pretty@*": version "4.7.1" @@ -341,10 +340,10 @@ ansi-regex@^4.1.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== -ansi-regex@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" - integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== ansi-styles@^3.2.1: version "3.2.1" @@ -477,15 +476,6 @@ borsh@^0.4.0: bs58 "^4.0.0" text-encoding-utf-8 "^1.0.2" -"borsh@https://github.com/defactojob/borsh-js#field-mapper": - version "0.3.1" - resolved "https://github.com/defactojob/borsh-js#33a0d24af281112c0a48efb3fa503f3212443de9" - dependencies: - "@types/bn.js" "^4.11.5" - bn.js "^5.0.0" - bs58 "^4.0.0" - text-encoding-utf-8 "^1.0.2" - boxen@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/boxen/-/boxen-4.2.0.tgz#e411b62357d6d6d36587c8ac3d5d974daa070e64" @@ -724,6 +714,13 @@ create-require@^1.1.0: resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== +cross-fetch@^3.1.4: + version "3.1.4" + resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.4.tgz#9723f3a3a247bf8b89039f3a380a9244e8fa2f39" + integrity sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ== + dependencies: + node-fetch "2.6.1" + crypto-hash@^1.2.2, crypto-hash@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/crypto-hash/-/crypto-hash-1.3.0.tgz#b402cb08f4529e9f4f09346c3e275942f845e247" @@ -999,9 +996,9 @@ flatstr@^1.0.12: integrity sha512-4zPxDyhCyiN2wIAtSLI6gc82/EjqZc1onI4Mz/l0pWrAlsSfYH/2ZIcU+e3oA2wDwbzIWNKwa23F8rh6+DRWkw== follow-redirects@^1.14.0: - version "1.14.3" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.3.tgz#6ada78118d8d24caee595595accdc0ac6abd022e" - integrity sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw== + version "1.14.4" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.4.tgz#838fdf48a8bbdd79e52ee51fb1c94e3ed98b9379" + integrity sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g== forwarded@0.2.0: version "0.2.0" @@ -1464,20 +1461,27 @@ node-addon-api@^2.0.0: resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-2.0.2.tgz#432cfa82962ce494b132e9d72a15b29f71ff5d32" integrity sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA== +node-fetch@2.6.1: + version "2.6.1" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" + integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw== + node-fetch@^2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.5.0.tgz#8028c49fc1191bba56a07adc6e2a954644a48501" integrity sha512-YuZKluhWGJwCcUu4RlZstdAxr8bFfOVHakc1mplwHkk8J+tqM1Y5yraYvIUpeX8aY7+crCwiELJq7Vl0o0LWXw== node-fetch@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.2.tgz#986996818b73785e47b1965cc34eb093a1d464d0" - integrity sha512-aLoxToI6RfZ+0NOjmWAgn9+LEd30YCkJKFSyWacNZdEKTit/ZMcKjGkTRo8uWEsnIb/hfKecNPEbln02PdWbcA== + version "2.6.5" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.5.tgz#42735537d7f080a7e5f78b6c549b7146be1742fd" + integrity sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ== + dependencies: + whatwg-url "^5.0.0" node-gyp-build@^4.2.0: - version "4.2.3" - resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" - integrity sha512-MN6ZpzmfNCRM+3t57PTJHgHyw/h4OWnZ6mR8P5j/uZtqQr46RRuDE/P+g3n0YR/AiYXeWixZZzaip77gdICfRg== + version "4.3.0" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.3.0.tgz#9f256b03e5826150be39c764bf51e993946d71a3" + integrity sha512-iWjXZvmboq0ja1pUGULQBexmxq8CV4xBhX7VDOTbL7ZR4FOowwY/VOtRxBN/yKxmdGoIp4j5ysNT4u3S2pDQ3Q== nodemon@^2.0.12: version "2.0.12" @@ -1872,7 +1876,7 @@ string-width@^3.0.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" -string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0: +string-width@^4.0.0: version "4.2.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" integrity sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA== @@ -1881,6 +1885,15 @@ string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.0" +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -1895,12 +1908,12 @@ strip-ansi@^5.1.0: dependencies: ansi-regex "^4.1.0" -strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== dependencies: - ansi-regex "^5.0.0" + ansi-regex "^5.0.1" strip-json-comments@^3.1.1: version "3.1.1" @@ -1975,6 +1988,11 @@ touch@^3.1.0: dependencies: nopt "~1.0.10" +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o= + traverse-chain@~0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/traverse-chain/-/traverse-chain-0.1.0.tgz#61dbc2d53b69ff6091a12a168fd7d433107e40f1" @@ -2115,6 +2133,19 @@ vary@~1.1.2: resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE= + +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" + integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0= + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + widest-line@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" @@ -2147,9 +2178,9 @@ write-file-atomic@^3.0.0: typedarray-to-buffer "^3.1.5" ws@^7.4.5: - version "7.5.4" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.4.tgz#56bfa20b167427e138a7795de68d134fe92e21f9" - integrity sha512-zP9z6GXm6zC27YtspwH99T3qTG7bBFv2VIkeHstMLrLlDJuzA7tQ5ls3OJ1hOGGCzTQPniNJoHXIAOS0Jljohg== + version "7.5.5" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.5.tgz#8b4bc4af518cfabd0473ae4f99144287b33eb881" + integrity sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w== xdg-basedir@^4.0.0: version "4.0.0" @@ -2167,9 +2198,9 @@ yargs-parser@^20.2.2: integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== yargs@^17.0.1: - version "17.1.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.1.1.tgz#c2a8091564bdb196f7c0a67c1d12e5b85b8067ba" - integrity sha512-c2k48R0PwKIqKhPMWjeiF6y2xY/gPMUlro0sgxqXpbOIohWiLNXWslsootttv7E1e73QPAMQSg5FeySbVcpsPQ== + version "17.2.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.2.0.tgz#ec529632b2cb9044f3927f4b45f9cc4ae2535653" + integrity sha512-UPeZv4h9Xv510ibpt5rdsUNzgD78nMa1rhxxCgvkKiq06hlKCEHJLiJ6Ub8zDg/wR6hedEI6ovnd2vCvJ4nusA== dependencies: cliui "^7.0.2" escalade "^3.1.1"