Skip to content

Commit ef2b48d

Browse files
author
Sentio Bot
committed
chore: update
1 parent 7e90c9a commit ef2b48d

12 files changed

+964
-0
lines changed

doc/index.html

Lines changed: 513 additions & 0 deletions
Large diffs are not rendered by default.

openapi.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,34 @@
11081108
]
11091109
}
11101110
},
1111+
"/api/v1/prices/add_coin_by_gecko": {
1112+
"post": {
1113+
"summary": "AddCoinByGecko adds a coin by its coingecko id.",
1114+
"description": "coingecko id the API ID of the coin in coingecko web page.\nplease AWARE that the coingecko id is NOT the same as the symbol of the coin.\n\n![screenshot](https://github.com/sentioxyz/docs/blob/main/.gitbook/assets/coingecko_apiid.png)",
1115+
"operationId": "AddCoinByGecko",
1116+
"responses": {
1117+
"200": {
1118+
"description": "A successful response.",
1119+
"schema": {
1120+
"$ref": "#/definitions/price_service.AddCoinByGeckoResponse"
1121+
}
1122+
}
1123+
},
1124+
"parameters": [
1125+
{
1126+
"name": "body",
1127+
"in": "body",
1128+
"required": true,
1129+
"schema": {
1130+
"$ref": "#/definitions/price_service.AddCoinByGeckoRequest"
1131+
}
1132+
}
1133+
],
1134+
"tags": [
1135+
"Price"
1136+
]
1137+
}
1138+
},
11111139
"/api/v1/prices/batch": {
11121140
"post": {
11131141
"summary": "Batch get prices",
@@ -5547,6 +5575,55 @@
55475575
}
55485576
}
55495577
},
5578+
"price_service.AddCoinByGeckoRequest": {
5579+
"type": "object",
5580+
"properties": {
5581+
"coingeckoId": {
5582+
"type": "string"
5583+
}
5584+
}
5585+
},
5586+
"price_service.AddCoinByGeckoResponse": {
5587+
"type": "object",
5588+
"properties": {
5589+
"status": {
5590+
"$ref": "#/definitions/price_service.AddCoinByGeckoResponse.Status"
5591+
},
5592+
"message": {
5593+
"type": "string"
5594+
},
5595+
"currentPrice": {
5596+
"type": "number",
5597+
"format": "double"
5598+
},
5599+
"timestamp": {
5600+
"type": "string",
5601+
"format": "date-time"
5602+
},
5603+
"symbol": {
5604+
"type": "string"
5605+
},
5606+
"coins": {
5607+
"type": "array",
5608+
"items": {
5609+
"type": "object",
5610+
"$ref": "#/definitions/price_service.CoinID"
5611+
}
5612+
}
5613+
}
5614+
},
5615+
"price_service.AddCoinByGeckoResponse.Status": {
5616+
"type": "string",
5617+
"enum": [
5618+
"OK",
5619+
"ALREADY_EXISTS",
5620+
"MISMATCH_WITH_EXISTING",
5621+
"GECKO_NOT_FOUND",
5622+
"GECKO_RETURN_NON_SUPPORTED_CHAIN",
5623+
"GECKO_HAS_DUPLICATE_SYMBOL"
5624+
],
5625+
"default": "OK"
5626+
},
55505627
"price_service.BatchGetPricesRequest": {
55515628
"type": "object",
55525629
"properties": {

src/PriceApi.md

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/apis/PriceApi.ts

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/models/ObjectSerializer.ts

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/models/PriceServiceAddCoinByGeckoRequest.ts

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)