question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

is Order Structure's average field always available?

See original GitHub issue
{ info:
   { amount: 0.1,
     avg_price: 0.01047286,
     create_date: 1507721878000,
     deal_amount: 0.1,
     order_id: 22351619,
     orders_id: 22351619,
     price: 0.01068231,
     status: 2,
     symbol: 'ltc_btc',
     type: 'buy' },
  id: 22351619,
  timestamp: 1507721878000,
  datetime: '2017-10-11T11:37:58.000Z',
  symbol: 'LTC/BTC',
  type: 'limit',
  side: 'buy',
  price: 0.01068231,
  average: 0.01047286,
  amount: 0.1,
  filled: 0.1,
  remaining: 0,
  status: 'closed',
  fee: undefined }

thatā€™s order info from okex. ā€˜averageā€™ field not mentioned in doc https://github.com/ccxt-dev/ccxt/wiki/Manual#order-structure for me, i donā€™t care about the ā€˜priceā€™ field, which i guess is the price i create order for. instead i need to know the average transaction price.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (26 by maintainers)

github_iconTop GitHub Comments

1reaction
86chenjiecommented, Oct 13, 2017

šŸ‘ works

0reactions
kroitorcommented, Oct 13, 2017

Reference: #71

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does the order of members in a struct matter? - Stack Overflow
The order of fields in a struct does matter - the compiler is not allowed to reorder fields, so the size of the...
Read more >
Ordered field - Wikipedia
In mathematics, an ordered field is a field together with a total ordering of its elements that is compatible with the field operations....
Read more >
Definitions of Ordered Set and Ordered Field
An ordered field is a field that is also an ordered set. But the order must also be compatible with addition and multiplication...
Read more >
Ordered Fields - YouTube
This is the first video in the playlist on real analysis. In this video we discuss the definition of an ordered field and...
Read more >
Order fields of structure array - MATLAB orderfields - MathWorks
Order the fields by listing their original positions in a different order. For example, move the third field so that it is the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found