mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-22 21:59:44 +03:00
Added CFD prices request
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@orionprotocol/sdk",
|
"name": "@orionprotocol/sdk",
|
||||||
"version": "0.16.0-rc.15",
|
"version": "0.16.0-rc.16",
|
||||||
"description": "Orion Protocol SDK",
|
"description": "Orion Protocol SDK",
|
||||||
"main": "./lib/esm/index.js",
|
"main": "./lib/esm/index.js",
|
||||||
"module": "./lib/esm/index.js",
|
"module": "./lib/esm/index.js",
|
||||||
|
|||||||
@@ -185,6 +185,11 @@ class OrionBlockchain {
|
|||||||
z.record(z.string()).transform(makePartial),
|
z.record(z.string()).transform(makePartial),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
getCFDPrices = () => fetchWithValidation(
|
||||||
|
`${this.apiUrl}/api/cfd/prices`,
|
||||||
|
z.record(z.string()).transform(makePartial),
|
||||||
|
);
|
||||||
|
|
||||||
getTokensFee = () => fetchWithValidation(
|
getTokensFee = () => fetchWithValidation(
|
||||||
`${this.apiUrl}/api/tokensFee`,
|
`${this.apiUrl}/api/tokensFee`,
|
||||||
z.record(z.string()).transform(makePartial),
|
z.record(z.string()).transform(makePartial),
|
||||||
|
|||||||
Reference in New Issue
Block a user