mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 14:12:35 +03:00
Added CFD prices request
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user