Trades
Trades
Get list of trades
Typescript Core SDK
📚SDK REFERENCE
listTrades
Request
Get the last 5 trades made with ETH on XpansionChain:
const getListTrades = async (partyATokenType: string, pageSize: number) => {
const response = await client.listTrades({
partyATokenType,
pageSize,
});
return response;
};
getListTrades('ETH', 5)
.then((result) => {
console.log(result);
})
.catch((e) => {
console.log(e);
});Example response
Kotlin (JVM) Core SDK
📚SDK REFERENCE
listTrades
Swift Core SDK
📚SDK REFERENCE
listTrades
Golang Core SDK
📚SDK REFERENCE
ListTrades
C# Core SDK
📚SDK REFERENCE
ListTrades
Get details about a trade
Typescript Core SDK
📚SDK REFERENCE
getTrade
Request
Get details about the trade with ID 56408:
Example response
Kotlin (JVM) Core SDK
📚SDK REFERENCE
getTrade
Swift Core SDK
📚SDK REFERENCE
getTrade
Golang Core SDK
📚SDK REFERENCE
GetTrade
C# Core SDK
📚SDK REFERENCE
GetTrade
Last updated