Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sentio Bot committed Dec 23, 2024
1 parent 7e90c9a commit ef2b48d
Show file tree
Hide file tree
Showing 12 changed files with 964 additions and 0 deletions.
513 changes: 513 additions & 0 deletions doc/index.html

Large diffs are not rendered by default.

77 changes: 77 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,34 @@
]
}
},
"/api/v1/prices/add_coin_by_gecko": {
"post": {
"summary": "AddCoinByGecko adds a coin by its coingecko id.",
"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)",
"operationId": "AddCoinByGecko",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/price_service.AddCoinByGeckoResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/price_service.AddCoinByGeckoRequest"
}
}
],
"tags": [
"Price"
]
}
},
"/api/v1/prices/batch": {
"post": {
"summary": "Batch get prices",
Expand Down Expand Up @@ -5547,6 +5575,55 @@
}
}
},
"price_service.AddCoinByGeckoRequest": {
"type": "object",
"properties": {
"coingeckoId": {
"type": "string"
}
}
},
"price_service.AddCoinByGeckoResponse": {
"type": "object",
"properties": {
"status": {
"$ref": "#/definitions/price_service.AddCoinByGeckoResponse.Status"
},
"message": {
"type": "string"
},
"currentPrice": {
"type": "number",
"format": "double"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"symbol": {
"type": "string"
},
"coins": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/price_service.CoinID"
}
}
}
},
"price_service.AddCoinByGeckoResponse.Status": {
"type": "string",
"enum": [
"OK",
"ALREADY_EXISTS",
"MISMATCH_WITH_EXISTING",
"GECKO_NOT_FOUND",
"GECKO_RETURN_NON_SUPPORTED_CHAIN",
"GECKO_HAS_DUPLICATE_SYMBOL"
],
"default": "OK"
},
"price_service.BatchGetPricesRequest": {
"type": "object",
"properties": {
Expand Down
56 changes: 56 additions & 0 deletions src/PriceApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions src/apis/PriceApi.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/models/ObjectSerializer.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions src/models/PriceServiceAddCoinByGeckoRequest.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ef2b48d

Please sign in to comment.