stellar-deprecated / horizon

This repository has moved to the go monorepo: https://github.com/stellar/go/tree/master/services/horizon
Apache License 2.0
218 stars 106 forks source link

/accounts/<acc>/trades output missing details #434

Open chatch opened 6 years ago

chatch commented 6 years ago

For example records returned for https://horizon.stellar.org/accounts/GBU6GMZZ2KTQ33CHNVPAWWEJ22ZHLYGBGO3LIBKNANXUMNEOFROZKO62/trades?order=desc contain only the buyer and seller:

{
        "id": "71006795929231365-1",
        "paging_token": "71006795929231365-1",
        "offer_id": "",
        "seller": "GB5EKR4N4AXVNJXQTZ7BIDW2WPQTSC23AN4Y3CWOHYKEJTQAX5BCFRFZ",
        "sold_amount": "",
        "sold_asset_type": "",
        "buyer": "GBU6GMZZ2KTQ33CHNVPAWWEJ22ZHLYGBGO3LIBKNANXUMNEOFROZKO62",
        "bought_amount": "",
        "bought_asset_type": "",
        "created_at": "2018-02-28T04:58:07Z"
}

but for top level https://horizon.stellar.org/trades the records look like this:

{
        "id": "71009974205026305-2",
        "paging_token": "71009974205026305-2",
        "ledger_close_time": "2018-02-28T05:48:59Z",
        "offer_id": "832054",
        "base_account": "GCYDMCEQ2YHXYMFQG7M3TCYPMVRWYKUXG2P53NRVQK7CVATCNGVNNOY5",
        "base_amount": "5070.6072648",
        "base_asset_type": "native",
        "counter_account": "GANH7BESAXURVQLCXD4SGPZ7H6DIGBYQ744KG323AQ5CM4HQQGYSDDAR",
        "counter_amount": "11268.0161440",
        "counter_asset_type": "credit_alphanum4",
        "counter_asset_code": "MOBI",
        "counter_asset_issuer": "GA6HCMBLTZS5VYYBCATRBRZ3BZJMAFUDKYYF6AH6MVCMGWMRDNSWJPIH",
        "base_is_seller": true
}