10. Check Details on a Certain Order
Description
Check detailed information on fund deposited in private public liquidity pool.
TBD: Narratives
Function Description
Item
Description
Contract Address
Trading contract (referenced by Smart Contract Overview section)
Contract Name
SLDDAIContract.sol
Function
function getOrderInfo(uint256 orderID) external view returns ( string memory exType, address holder, uint256 number, uint256 exFee, uint256 lockFee, uint256 newLockFee, uint256 openPrice, uint256 marginAmount, uint256 marginFee, uint256 startTime, uint256 closePrice, ContractType contractType, State state )
Function Selector
0xd311636b
Invocation Type
Ethereum Call
Passing Parameters
None
Return Value
exType: transaction pair,
holder: address of open position,
number: number of open positions,
exFee: opening fee,
lockFee: accumulated position fee,
newLockFee: expected position fee for the next cycle,
openPrice: opening price,
marginAmount: margin,
marginFee: bursting fee,
startTime: time to open position,
closePrice: price to close position,
contractType: up or down direction, call up - put down,
state: status 1 open 2 close
ABI Description
Examples
Calling Examples
HTTP Request Example
Send a call request to get private pool info
POST
(BSC Mainnet) https://bsc-dataseed.binance.org/
Make a contract call to get deposited funds details in private pool of Shield Protocol V1. More details on how to make a contract call request via BSC RPC could be found here, https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendrawtransaction
Request Body
jsonrpc
string
"2.0"
method
string
"eth_call"
params
array
the signed transaction data coerced into string array, for instance,
id
number
request sequence id, you could use timestamp as id
Request Body Example:
CURL Example:
Last updated