Buy Order

An interface called IThirdPartyOrderOperations from the namespace XendBridgeSDK.Services.Interfaces is provided, in which the method InitiateBuyOrderRequest would be called from. An object argument is passed called InitiateOrderRequestModel which would return the response of the initiated buy order call.

A generic BaseResponse<T> class is returned on all the method calls.

The response returned from initiating the buy order is BaseResponse<PeerToPeerOrderResponseModel> , which the following properties are as follows;

Finally, get your response using the snippet below;

// Populate the model with necessary values
InitiateOrderRequestModel model = new InitiateOrderRequestModel(){};

// Make the call by passing the model
BaseResponse<PeerToPeerOrderResponseModel> response = thirdPartyOrderOperations.InitiateBuyOrderRequest(model);

Please see the function from your IDE or visit here to see the request and response models in detail.

Last updated