Added CFD prices request

This commit is contained in:
Demid
2023-01-13 13:31:24 +03:00
parent d14b872c27
commit c6d7e734d4
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.16.0-rc.15",
"version": "0.16.0-rc.16",
"description": "Orion Protocol SDK",
"main": "./lib/esm/index.js",
"module": "./lib/esm/index.js",

View File

@@ -185,6 +185,11 @@ class OrionBlockchain {
z.record(z.string()).transform(makePartial),
);
getCFDPrices = () => fetchWithValidation(
`${this.apiUrl}/api/cfd/prices`,
z.record(z.string()).transform(makePartial),
);
getTokensFee = () => fetchWithValidation(
`${this.apiUrl}/api/tokensFee`,
z.record(z.string()).transform(makePartial),