Coder Social home page Coder Social logo

Comments (3)

ncortines avatar ncortines commented on July 29, 2024

@RaNo99, unfortunately I don't have access to this sort of data. I'd need you to help me by providing some JSON files.

from morgan-stanley-pl.

RaNo99 avatar RaNo99 commented on July 29, 2024

Here you go:

endpoint: /sw-ptpapi/v1/withdrawals/realtimeTransactions/*

Response part of interest:

{
//...
"order" : {
"exchangeFriendlyTzShortName" : "EST",
"fillsIfNotTooMany" : [ {
"fillDateTime" : "2019-11-25T11:11:09",
"fillPrice" : {
"amount" : "CENSORED",
"currency" : "USD"
},
"fillQuantity" : "CENSORED"
}, {
"fillDateTime" : "2019-11-25T11:11:09",
"fillPrice" : {
"amount" : "CENSORED",
"currency" : "USD"
},
"fillQuantity" : "CENSORED"
}, {
"fillDateTime" : "2019-11-25T11:11:09",
"fillPrice" : {
"amount" : "CENSORED",
"currency" : "USD"
},
"fillQuantity" : "CENSORED"
} ],
"formattedSymbolAndExchange" : "CENSORED",
"goodTillCancel" : true,
"limitOrder" : true,
"limitPrice" : {
"amount" : "CENSORED",
"currency" : "USD"
},
"orderDate" : "2019-11-12",
"orderQuantity" : "CENSORED",
"orderStatusDescription" : "Order is done",
"totalFillQuantity" : "CENSORED",
"uniqueFillDate" : "2019-11-25",
"weightedAverageFillPrice" : {
"amount" : "CENSORED",
"currency" : "USD"
}
},
//...
}

The order was placed on 2019-11-12. Then it waited until 2019-11-25 when the stock price finally grew high enough to match the ordered price. Then, in this particular case, it was sold in three parts (because not immediately there were enough buyers to buy all the stock units at the price I ordered). It's possible that a sale like this could extend over a few days (fortunately in my case all parts were sold on the same day), and that's where I think uniqueFillDate becomes helpful.

from morgan-stanley-pl.

RaNo99 avatar RaNo99 commented on July 29, 2024

It works fine for me now. Thanks @ncortines .

from morgan-stanley-pl.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.