Nodes.wavesplatform.com questions about transactions

When looking at a transaction like:
https://nodes.wavesplatform.com/transactions/info/2QkyD2ga7XMtjSZbHzLt8qg3SwwrhDu5ecwcEuTArnRL

There is an amount and price for the transaction then also a buy and sell section with their own amounts and prices. I am struggling with understanding this. In this case those 2 amounts don’t relate to the total on the transaction which is also the amount that shows on the waves platform/wavesdex.

From this api result, how does one tell if the transaction was bought against a sell wall or sold against a buy wall?

I appreciate any help that you can provide in helping me understand this better.

Here is the data from the link above:

{
“type” : 7,
“id” : “2QkyD2ga7XMtjSZbHzLt8qg3SwwrhDu5ecwcEuTArnRL”,
“sender” : “3PJaDyprvekvPXPuAtxrapacuDJopgJRaU3”,
“senderPublicKey” : “7kPFrHDiGw1rCm7LPszuECwWYL3dMf6iMifLRDJQZMzy”,
“fee” : 300000,
“timestamp” : 1543701264707,
“signature” : “553r9HSZtj2UjGq5VMCcyL35BZDYrkDAnbCYzBupuusVB8aqFqZN9ccuhcSASejvUvtbrYrzXu9YSYRxBXJCZo4D”,
“order1” : {
“id” : “BM5LHsnRuyhef1Hcxbk7Z5GeGCDS2e53bMFGijopCtcU”,
“sender” : “3P89fPx3PFZLqbJCTDSDAXgS323YBWKwbRs”,
“senderPublicKey” : “7yjtB7a8R82SS6k9fHWpvAax2UrsLwiLfShFvCsMwwZt”,
“matcherPublicKey” : “7kPFrHDiGw1rCm7LPszuECwWYL3dMf6iMifLRDJQZMzy”,
“assetPair” : {
“amountAsset” : “FJTs9cC9hcNvhawNzs4xhiiZdxFa6fCG9isZbjCdo3Kd”,
“priceAsset” : null
},
“orderType” : “buy”,
“price” : 28,
“amount” : 15999000000000,
“timestamp” : 1543701262629,
“expiration” : 1546206862629,
“matcherFee” : 300000,
“signature” : “3A73zaLCiTsxtRnqbBWqjxyKumnrfyHNT7cJCj4LFUuDDeQ7VX2YzGnHGfijZxyVF1oMRviWd5b63Q19ky1RmSGz”
},
“order2” : {
“id” : “959zQHVCoR57zcejJYVzFtckSqGWKa7kBovYhUnegNkq”,
“sender” : “3PHsu7bchmtXNgL6PkMTwokxpDKyRc9B6xd”,
“senderPublicKey” : “2ATs8StthrxtbHTV5DxM23oe2etNpygkE5aZeqFGiG3d”,
“matcherPublicKey” : “7kPFrHDiGw1rCm7LPszuECwWYL3dMf6iMifLRDJQZMzy”,
“assetPair” : {
“amountAsset” : “FJTs9cC9hcNvhawNzs4xhiiZdxFa6fCG9isZbjCdo3Kd”,
“priceAsset” : null
},
“orderType” : “sell”,
“price” : 28,
“amount” : 15000000000000,
“timestamp” : 1543694167124,
“expiration” : 1546199767124,
“matcherFee” : 300000,
“signature” : “4hGNEpy2jTLJMP4bEnegXacHDX9539duWNERxzx7KqNbdmWq1hmafkavXz1N7g2Rd5uFpMHw6b7bVHUFq2bkyMfj”
},
“price” : 28,
“amount” : 13999000000000,
“buyMatcherFee” : 262497,
“sellMatcherFee” : 279980,
“height” : 1287100
}