From 886eb0710daeaf81e88c00b842566acb94568090 Mon Sep 17 00:00:00 2001 From: robert engels Date: Wed, 19 Feb 2020 09:53:16 -0600 Subject: [PATCH 01/52] Create LICENSE --- LICENSE | 674 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 674 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. From 6567edccb1d50873c3e4338b6c87eed3a4be0dbb Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 20 Apr 2020 18:42:36 -0500 Subject: [PATCH 02/52] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 689c822..891d124 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # go-trader -A financial exchange written in Go. +A financial exchange written in Go including complete order book, fix protocol, and market data distribution. Uses quickfixgo or gRPC for client/server communication. From 2e6cf750e0f21a9d498c40778de84fc761318014 Mon Sep 17 00:00:00 2001 From: robert engels Date: Sat, 16 Dec 2023 21:40:04 -0600 Subject: [PATCH 03/52] add go module support --- go.mod | 32 +++++++++++++++++++++++++++++ go.sum | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 go.mod create mode 100644 go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..fc92118 --- /dev/null +++ b/go.mod @@ -0,0 +1,32 @@ +module github.com/robaho/go-trader + +go 1.21.0 + +require ( + github.com/VividCortex/gohistogram v1.0.0 + github.com/gernest/hot v0.0.0-20171015095712-0f9b762dc7c0 + github.com/golang/protobuf v1.5.3 + github.com/pkg/errors v0.9.1 + github.com/quickfixgo/enum v0.1.0 + github.com/quickfixgo/field v0.1.0 + github.com/quickfixgo/fix44 v0.1.0 + github.com/quickfixgo/quickfix v0.9.0 + github.com/robaho/fixed v0.0.0-20230815003229-929de1ea03c3 + github.com/robaho/gocui v0.3.0 + github.com/shopspring/decimal v1.3.1 + golang.org/x/net v0.19.0 + google.golang.org/grpc v1.60.0 +) + +require ( + github.com/armon/go-proxyproto v0.1.0 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect + github.com/mattn/go-runewidth v0.0.9 // indirect + github.com/nsf/termbox-go v1.1.1 // indirect + github.com/quickfixgo/tag v0.1.0 // indirect + golang.org/x/sys v0.15.0 // indirect + golang.org/x/text v0.14.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect + google.golang.org/protobuf v1.31.0 // indirect + gopkg.in/fsnotify.v1 v1.4.7 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..b16bc34 --- /dev/null +++ b/go.sum @@ -0,0 +1,65 @@ +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= +github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= +github.com/armon/go-proxyproto v0.1.0 h1:TWWcSsjco7o2itn6r25/5AqKBiWmsiuzsUDLT/MTl7k= +github.com/armon/go-proxyproto v0.1.0/go.mod h1:Xj90dce2VKbHzRAeiVQAMBtj4M5oidoXJ8lmgyW21mw= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= +github.com/gernest/hot v0.0.0-20171015095712-0f9b762dc7c0 h1:MPCE/0Mv8AeAdMbsCHtnCzJGAolmelhvVskLRFj3Itc= +github.com/gernest/hot v0.0.0-20171015095712-0f9b762dc7c0/go.mod h1:5kHRa4zL3iFMaTlmfEQpfJ5yB+W3Um3KGJBBbDui308= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= +github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/mattn/go-sqlite3 v1.14.18 h1:JL0eqdCOq6DJVNPSvArO/bIV9/P7fbGrV00LZHc+5aI= +github.com/mattn/go-sqlite3 v1.14.18/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= +github.com/nsf/termbox-go v1.1.1 h1:nksUPLCb73Q++DwbYUBEglYBRPZyoXJdrj5L+TkjyZY= +github.com/nsf/termbox-go v1.1.1/go.mod h1:T0cTdVuOwf7pHQNtfhnEbzHbcNyCEcVU4YPpouCbVxo= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/quickfixgo/enum v0.1.0 h1:TnCPOqxAWA5/IWp7lsvj97x7oyuHYgj3STBJlBzZGjM= +github.com/quickfixgo/enum v0.1.0/go.mod h1:65gdG2/8vr6uOYcjZBObVHMuTEYc5rr/+aKVWTrFIrQ= +github.com/quickfixgo/field v0.1.0 h1:JVO6fVD6Nkyy8e/ROYQtV/nQhMX/BStD5Lq7XIgYz2g= +github.com/quickfixgo/field v0.1.0/go.mod h1:Zu0qYmpj+gljlB2HgpUt9EcTIThs2lIQb8C57qbJr8o= +github.com/quickfixgo/fix44 v0.1.0 h1:g/rTl6mXDlG7iIMbY7zaPbHcj9N/B+tteOZ01yGzeSQ= +github.com/quickfixgo/fix44 v0.1.0/go.mod h1:d6Ia02Eq/JYgKCn/2V9FHxguAl1Alp/yu/xVpry82dA= +github.com/quickfixgo/quickfix v0.9.0 h1:WshR3GUSxR69ZrSQfppKs2zZ12dTYtU3JUgQg+PAOdA= +github.com/quickfixgo/quickfix v0.9.0/go.mod h1:t5Z881dOZ2Dz5vM6KIbMCx3YpAiFPFf/iCLCSn91Qqo= +github.com/quickfixgo/tag v0.1.0 h1:R2A1Zf7CBE903+mOQlmTlfTmNZQz/yh7HunMbgcsqsA= +github.com/quickfixgo/tag v0.1.0/go.mod h1:l/drB1eO3PwN9JQTDC9Vt2EqOcaXk3kGJ+eeCQljvAI= +github.com/robaho/fixed v0.0.0-20230815003229-929de1ea03c3 h1:z2AXOxvJ7rXsbyv3s9NIZBKAJgEtSE6/lR/TWafkm0w= +github.com/robaho/fixed v0.0.0-20230815003229-929de1ea03c3/go.mod h1:9YjDu6DCo4pkAT+5VYIW1CPk2nh9CnvT/x5YfhSYlnQ= +github.com/robaho/gocui v0.3.0 h1:xX5dcUDCUlO/xXA6Jzh979t+7tLkLM4KeToIioJrfrE= +github.com/robaho/gocui v0.3.0/go.mod h1:pGoMrUaM3DO8ORottR2+ffXjklvRVW0pUnXF77AK6Ow= +github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= +github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 h1:6GQBEOdGkX6MMTLT9V+TjtIRZCw9VPD5Z+yHY9wMgS0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97/go.mod h1:v7nGkzlmW8P3n/bKmWBn2WpBjpOEx8Q6gMueudAmKfY= +google.golang.org/grpc v1.60.0 h1:6FQAR0kM31P6MRdeluor2w2gPaS4SVNrD/DNTxrQ15k= +google.golang.org/grpc v1.60.0/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From 26f7f6578fdcd8b50469f78f053ce39f05231223 Mon Sep 17 00:00:00 2001 From: robert engels Date: Sat, 16 Dec 2023 21:41:10 -0600 Subject: [PATCH 04/52] add lit based html client --- .gitignore | 3 + internal/exchange/webserver.go | 21 +- web_lit/.gitignore | 24 + web_lit/index.html | 20 + web_lit/package-lock.json | 1345 ++++++++++++++++++++++++++++++++ web_lit/package.json | 20 + web_lit/src/book-element.ts | 135 ++++ web_lit/src/index-page.ts | 44 ++ web_lit/src/index.css | 1 + web_lit/src/vite-env.d.ts | 1 + web_lit/tsconfig.json | 24 + web_lit/vite.config.ts | 38 + 12 files changed, 1673 insertions(+), 3 deletions(-) create mode 100644 web_lit/.gitignore create mode 100644 web_lit/index.html create mode 100644 web_lit/package-lock.json create mode 100644 web_lit/package.json create mode 100644 web_lit/src/book-element.ts create mode 100644 web_lit/src/index-page.ts create mode 100644 web_lit/src/index.css create mode 100644 web_lit/src/vite-env.d.ts create mode 100644 web_lit/tsconfig.json create mode 100644 web_lit/vite.config.ts diff --git a/.gitignore b/.gitignore index 9209ef5..dff187d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ node_modules out +.DS_Store +__debug_bin* + diff --git a/internal/exchange/webserver.go b/internal/exchange/webserver.go index 60ca57f..4a270ff 100644 --- a/internal/exchange/webserver.go +++ b/internal/exchange/webserver.go @@ -3,9 +3,6 @@ package exchange import ( "crypto/md5" "encoding/hex" - "github.com/gernest/hot" - . "github.com/robaho/go-trader/pkg/common" - "golang.org/x/net/websocket" "math/rand" "net/http" "regexp" @@ -13,6 +10,10 @@ import ( "strings" "sync" "time" + + "github.com/gernest/hot" + . "github.com/robaho/go-trader/pkg/common" + "golang.org/x/net/websocket" ) type empty struct{} @@ -42,10 +43,13 @@ func StartWebServer(addr string) { http.HandleFunc("/book", bookHandler) http.HandleFunc("/instruments", instrumentsHandler) http.HandleFunc("/sessions", sessionsHandler) + http.HandleFunc("/api/instruments/", authenticate(apiInstrumentsHandler)) http.HandleFunc("/api/book/", authenticate(apiBookHandler)) http.HandleFunc("/api/stats/", authenticate(apiStatsHandler)) http.HandleFunc("/", welcomeHandler) + http.Handle("/lit/", http.StripPrefix("/lit/", http.FileServer(http.Dir("web_lit/dist")))) + // add REST api http.ListenAndServe(addr, nil) }() @@ -261,6 +265,17 @@ func apiBookHandler(w http.ResponseWriter, r *http.Request) { } } +func apiInstrumentsHandler(w http.ResponseWriter, r *http.Request) { + + json,_,err := websocket.JSON.Marshal(IMap.AllSymbols()); + + if err!=nil { + http.Error(w, "unable to retrieve symbol list", http.StatusInternalServerError) + } else { + w.Write(json) + } +} + func apiStatsHandler(w http.ResponseWriter, r *http.Request) { symbol := strings.TrimPrefix(r.URL.Path, "/api/stats/") diff --git a/web_lit/.gitignore b/web_lit/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/web_lit/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/web_lit/index.html b/web_lit/index.html new file mode 100644 index 0000000..88aebb4 --- /dev/null +++ b/web_lit/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + Go-Trader LitElement Client + + + + + + + + + + \ No newline at end of file diff --git a/web_lit/package-lock.json b/web_lit/package-lock.json new file mode 100644 index 0000000..686d9c0 --- /dev/null +++ b/web_lit/package-lock.json @@ -0,0 +1,1345 @@ +{ + "name": "web_html", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "web_html", + "version": "0.0.0", + "dependencies": { + "@shoelace-style/shoelace": "^2.12.0", + "lit": "^3.1.0" + }, + "devDependencies": { + "typescript": "^5.2.2", + "vite": "^5.0.8", + "vite-plugin-static-copy": "^1.0.0" + } + }, + "node_modules/@ctrl/tinycolor": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-4.0.2.tgz", + "integrity": "sha512-fKQinXE9pJ83J1n+C3rDl2xNLJwfoYNvXLRy5cYZA9hBJJw2q+sbb/AOSNKmLxnTWyNTmy4994dueSwP4opi5g==", + "engines": { + "node": ">=14" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.9.tgz", + "integrity": "sha512-jkYjjq7SdsWuNI6b5quymW0oC83NN5FdRPuCbs9HZ02mfVdAP8B8eeqLSYU3gb6OJEaY5CQabtTFbqBf26H3GA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.9.tgz", + "integrity": "sha512-q4cR+6ZD0938R19MyEW3jEsMzbb/1rulLXiNAJQADD/XYp7pT+rOS5JGxvpRW8dFDEfjW4wLgC/3FXIw4zYglQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.9.tgz", + "integrity": "sha512-KOqoPntWAH6ZxDwx1D6mRntIgZh9KodzgNOy5Ebt9ghzffOk9X2c1sPwtM9P+0eXbefnDhqYfkh5PLP5ULtWFA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.9.tgz", + "integrity": "sha512-KBJ9S0AFyLVx2E5D8W0vExqRW01WqRtczUZ8NRu+Pi+87opZn5tL4Y0xT0mA4FtHctd0ZgwNoN639fUUGlNIWw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.9.tgz", + "integrity": "sha512-vE0VotmNTQaTdX0Q9dOHmMTao6ObjyPm58CHZr1UK7qpNleQyxlFlNCaHsHx6Uqv86VgPmR4o2wdNq3dP1qyDQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.9.tgz", + "integrity": "sha512-uFQyd/o1IjiEk3rUHSwUKkqZwqdvuD8GevWF065eqgYfexcVkxh+IJgwTaGZVu59XczZGcN/YMh9uF1fWD8j1g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.9.tgz", + "integrity": "sha512-WMLgWAtkdTbTu1AWacY7uoj/YtHthgqrqhf1OaEWnZb7PQgpt8eaA/F3LkV0E6K/Lc0cUr/uaVP/49iE4M4asA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.9.tgz", + "integrity": "sha512-C/ChPohUYoyUaqn1h17m/6yt6OB14hbXvT8EgM1ZWaiiTYz7nWZR0SYmMnB5BzQA4GXl3BgBO1l8MYqL/He3qw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.9.tgz", + "integrity": "sha512-PiPblfe1BjK7WDAKR1Cr9O7VVPqVNpwFcPWgfn4xu0eMemzRp442hXyzF/fSwgrufI66FpHOEJk0yYdPInsmyQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.9.tgz", + "integrity": "sha512-f37i/0zE0MjDxijkPSQw1CO/7C27Eojqb+r3BbHVxMLkj8GCa78TrBZzvPyA/FNLUMzP3eyHCVkAopkKVja+6Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.9.tgz", + "integrity": "sha512-t6mN147pUIf3t6wUt3FeumoOTPfmv9Cc6DQlsVBpB7eCpLOqQDyWBP1ymXn1lDw4fNUSb/gBcKAmvTP49oIkaA==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.9.tgz", + "integrity": "sha512-jg9fujJTNTQBuDXdmAg1eeJUL4Jds7BklOTkkH80ZgQIoCTdQrDaHYgbFZyeTq8zbY+axgptncko3v9p5hLZtw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.9.tgz", + "integrity": "sha512-tkV0xUX0pUUgY4ha7z5BbDS85uI7ABw3V1d0RNTii7E9lbmV8Z37Pup2tsLV46SQWzjOeyDi1Q7Wx2+QM8WaCQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.9.tgz", + "integrity": "sha512-DfLp8dj91cufgPZDXr9p3FoR++m3ZJ6uIXsXrIvJdOjXVREtXuQCjfMfvmc3LScAVmLjcfloyVtpn43D56JFHg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.9.tgz", + "integrity": "sha512-zHbglfEdC88KMgCWpOl/zc6dDYJvWGLiUtmPRsr1OgCViu3z5GncvNVdf+6/56O2Ca8jUU+t1BW261V6kp8qdw==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.9.tgz", + "integrity": "sha512-JUjpystGFFmNrEHQnIVG8hKwvA2DN5o7RqiO1CVX8EN/F/gkCjkUMgVn6hzScpwnJtl2mPR6I9XV1oW8k9O+0A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.9.tgz", + "integrity": "sha512-GThgZPAwOBOsheA2RUlW5UeroRfESwMq/guy8uEe3wJlAOjpOXuSevLRd70NZ37ZrpO6RHGHgEHvPg1h3S1Jug==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.9.tgz", + "integrity": "sha512-Ki6PlzppaFVbLnD8PtlVQfsYw4S9n3eQl87cqgeIw+O3sRr9IghpfSKY62mggdt1yCSZ8QWvTZ9jo9fjDSg9uw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.9.tgz", + "integrity": "sha512-MLHj7k9hWh4y1ddkBpvRj2b9NCBhfgBt3VpWbHQnXRedVun/hC7sIyTGDGTfsGuXo4ebik2+3ShjcPbhtFwWDw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.9.tgz", + "integrity": "sha512-GQoa6OrQ8G08guMFgeXPH7yE/8Dt0IfOGWJSfSH4uafwdC7rWwrfE6P9N8AtPGIjUzdo2+7bN8Xo3qC578olhg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.9.tgz", + "integrity": "sha512-UOozV7Ntykvr5tSOlGCrqU3NBr3d8JqPes0QWN2WOXfvkWVGRajC+Ym0/Wj88fUgecUCLDdJPDF0Nna2UK3Qtg==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.9.tgz", + "integrity": "sha512-oxoQgglOP7RH6iasDrhY+R/3cHrfwIDvRlT4CGChflq6twk8iENeVvMJjmvBb94Ik1Z+93iGO27err7w6l54GQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@floating-ui/core": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.2.tgz", + "integrity": "sha512-Ii3MrfY/GAIN3OhXNzpCKaLxHQfJF9qvwq/kEJYdqDxeIHa01K8sldugal6TmeeXl+WMvhv9cnVzUTaFFJF09A==", + "dependencies": { + "@floating-ui/utils": "^0.1.3" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.3.tgz", + "integrity": "sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==", + "dependencies": { + "@floating-ui/core": "^1.4.2", + "@floating-ui/utils": "^0.1.3" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.6.tgz", + "integrity": "sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==" + }, + "node_modules/@lit-labs/ssr-dom-shim": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.1.2.tgz", + "integrity": "sha512-jnOD+/+dSrfTWYfSXBXlo5l5f0q1UuJo3tkbMDCYA2lKUYq79jaxqtGEvnRoh049nt1vdo1+45RinipU6FGY2g==" + }, + "node_modules/@lit/react": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@lit/react/-/react-1.0.2.tgz", + "integrity": "sha512-UJ5TQ46DPcJDIzyjbwbj6Iye0XcpCxL2yb03zcWq1BpWchpXS3Z0BPVhg7zDfZLF6JemPml8u/gt/+KwJ/23sg==", + "peerDependencies": { + "@types/react": "17 || 18" + } + }, + "node_modules/@lit/reactive-element": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.2.tgz", + "integrity": "sha512-SVOwLAWUQg3Ji1egtOt1UiFe4zdDpnWHyc5qctSceJ5XIu0Uc76YmGpIjZgx9YJ0XtdW0Jm507sDvjOu+HnB8w==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.1.2" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.0.tgz", + "integrity": "sha512-+1ge/xmaJpm1KVBuIH38Z94zj9fBD+hp+/5WLaHgyY8XLq1ibxk/zj6dTXaqM2cAbYKq8jYlhHd6k05If1W5xA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.0.tgz", + "integrity": "sha512-im6hUEyQ7ZfoZdNvtwgEJvBWZYauC9KVKq1w58LG2Zfz6zMd8gRrbN+xCVoqA2hv/v6fm9lp5LFGJ3za8EQH3A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.0.tgz", + "integrity": "sha512-u7aTMskN6Dmg1lCT0QJ+tINRt+ntUrvVkhbPfFz4bCwRZvjItx2nJtwJnJRlKMMaQCHRjrNqHRDYvE4mBm3DlQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.0.tgz", + "integrity": "sha512-8FvEl3w2ExmpcOmX5RJD0yqXcVSOqAJJUJ29Lca29Ik+3zPS1yFimr2fr5JSZ4Z5gt8/d7WqycpgkX9nocijSw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.9.0.tgz", + "integrity": "sha512-lHoKYaRwd4gge+IpqJHCY+8Vc3hhdJfU6ukFnnrJasEBUvVlydP8PuwndbWfGkdgSvZhHfSEw6urrlBj0TSSfg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.9.0.tgz", + "integrity": "sha512-JbEPfhndYeWHfOSeh4DOFvNXrj7ls9S/2omijVsao+LBPTPayT1uKcK3dHW3MwDJ7KO11t9m2cVTqXnTKpeaiw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.9.0.tgz", + "integrity": "sha512-ahqcSXLlcV2XUBM3/f/C6cRoh7NxYA/W7Yzuv4bDU1YscTFw7ay4LmD7l6OS8EMhTNvcrWGkEettL1Bhjf+B+w==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.9.0.tgz", + "integrity": "sha512-uwvOYNtLw8gVtrExKhdFsYHA/kotURUmZYlinH2VcQxNCQJeJXnkmWgw2hI9Xgzhgu7J9QvWiq9TtTVwWMDa+w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.9.0.tgz", + "integrity": "sha512-m6pkSwcZZD2LCFHZX/zW2aLIISyzWLU3hrLLzQKMI12+OLEzgruTovAxY5sCZJkipklaZqPy/2bEEBNjp+Y7xg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.9.0.tgz", + "integrity": "sha512-VFAC1RDRSbU3iOF98X42KaVicAfKf0m0OvIu8dbnqhTe26Kh6Ym9JrDulz7Hbk7/9zGc41JkV02g+p3BivOdAg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.9.0.tgz", + "integrity": "sha512-9jPgMvTKXARz4inw6jezMLA2ihDBvgIU9Ml01hjdVpOcMKyxFBJrn83KVQINnbeqDv0+HdO1c09hgZ8N0s820Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.9.0.tgz", + "integrity": "sha512-WE4pT2kTXQN2bAv40Uog0AsV7/s9nT9HBWXAou8+++MBCnY51QS02KYtm6dQxxosKi1VIz/wZIrTQO5UP2EW+Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.9.0.tgz", + "integrity": "sha512-aPP5Q5AqNGuT0tnuEkK/g4mnt3ZhheiXrDIiSVIHN9mcN21OyXDVbEMqmXPE7e2OplNLDkcvV+ZoGJa2ZImFgw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@shoelace-style/animations": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@shoelace-style/animations/-/animations-1.1.0.tgz", + "integrity": "sha512-Be+cahtZyI2dPKRm8EZSx3YJQ+jLvEcn3xzRP7tM4tqBnvd/eW/64Xh0iOf0t2w5P8iJKfdBbpVNE9naCaOf2g==", + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/claviska" + } + }, + "node_modules/@shoelace-style/localize": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.2.tgz", + "integrity": "sha512-Hf45HeO+vdQblabpyZOTxJ4ZeZsmIUYXXPmoYrrR4OJ5OKxL+bhMz5mK8JXgl7HsoEowfz7+e248UGi861de9Q==" + }, + "node_modules/@shoelace-style/shoelace": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@shoelace-style/shoelace/-/shoelace-2.12.0.tgz", + "integrity": "sha512-1Amirj0c5WLkymDcP6ZQmBfMC6zTNmGGK7/mjmGq4yhljrVaECVlBoKm0tfmo1jd3r8XJ8xYbQ8cxPAlwiDDvw==", + "dependencies": { + "@ctrl/tinycolor": "^4.0.2", + "@floating-ui/dom": "^1.5.3", + "@lit/react": "^1.0.0", + "@shoelace-style/animations": "^1.1.0", + "@shoelace-style/localize": "^3.1.2", + "composed-offset-position": "^0.0.4", + "lit": "^3.0.0", + "qr-creator": "^1.0.0" + }, + "engines": { + "node": ">=14.17.0" + }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/claviska" + } + }, + "node_modules/@types/prop-types": { + "version": "15.7.11", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", + "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==", + "peer": true + }, + "node_modules/@types/react": { + "version": "18.2.45", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.45.tgz", + "integrity": "sha512-TtAxCNrlrBp8GoeEp1npd5g+d/OejJHFxS3OWmrPBMFaVQMSN0OFySozJio5BHxTuTeug00AVXVAjfDSfk+lUg==", + "peer": true, + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/scheduler": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz", + "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==", + "peer": true + }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/composed-offset-position": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/composed-offset-position/-/composed-offset-position-0.0.4.tgz", + "integrity": "sha512-vMlvu1RuNegVE0YsCDSV/X4X10j56mq7PCIyOKK74FxkXzGLwhOUmdkJLSdOBOMwWycobGUMgft2lp+YgTe8hw==" + }, + "node_modules/cssom": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.2.5.tgz", + "integrity": "sha512-b9ecqKEfWrNcyzx5+1nmcfi80fPp8dVM8rlAh7fFK14PZbNjp++gRjyZTZfLJQa/Lw0qeCJho7WBIl0nw0v6HA==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=0.2.0" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "peer": true + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/esbuild": { + "version": "0.19.9", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.9.tgz", + "integrity": "sha512-U9CHtKSy+EpPsEBa+/A2gMs/h3ylBC0H0KSqIg7tpztHerLi6nrrcoUJAkNCEPumx8yJ+Byic4BVwHgRbN0TBg==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.19.9", + "@esbuild/android-arm64": "0.19.9", + "@esbuild/android-x64": "0.19.9", + "@esbuild/darwin-arm64": "0.19.9", + "@esbuild/darwin-x64": "0.19.9", + "@esbuild/freebsd-arm64": "0.19.9", + "@esbuild/freebsd-x64": "0.19.9", + "@esbuild/linux-arm": "0.19.9", + "@esbuild/linux-arm64": "0.19.9", + "@esbuild/linux-ia32": "0.19.9", + "@esbuild/linux-loong64": "0.19.9", + "@esbuild/linux-mips64el": "0.19.9", + "@esbuild/linux-ppc64": "0.19.9", + "@esbuild/linux-riscv64": "0.19.9", + "@esbuild/linux-s390x": "0.19.9", + "@esbuild/linux-x64": "0.19.9", + "@esbuild/netbsd-x64": "0.19.9", + "@esbuild/openbsd-x64": "0.19.9", + "@esbuild/sunos-x64": "0.19.9", + "@esbuild/win32-arm64": "0.19.9", + "@esbuild/win32-ia32": "0.19.9", + "@esbuild/win32-x64": "0.19.9" + } + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/lit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", + "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", + "dependencies": { + "@lit/reactive-element": "^2.0.0", + "lit-element": "^4.0.0", + "lit-html": "^3.1.0" + } + }, + "node_modules/lit-element": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.0.2.tgz", + "integrity": "sha512-/W6WQZUa5VEXwC7H9tbtDMdSs9aWil3Ou8hU6z2cOKWbsm/tXPAcsoaHVEtrDo0zcOIE5GF6QgU55tlGL2Nihg==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.1.2", + "@lit/reactive-element": "^2.0.0", + "lit-html": "^3.1.0" + } + }, + "node_modules/lit-html": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.1.0.tgz", + "integrity": "sha512-FwAjq3iNsaO6SOZXEIpeROlJLUlrbyMkn4iuv4f4u1H40Jw8wkeR/OUXZUHUoiYabGk8Y4Y0F/rgq+R4MrOLmA==", + "dependencies": { + "@types/trusted-types": "^2.0.2" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mkdirp": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.4.tgz", + "integrity": "sha512-sZObLj65ImOahHTaycVJF559muyAvv1hYyBQSfVfZq9ajpgY9Da+cRQzbXDfsKJTwUMUABRjBMDHieYqbHKx0g==", + "deprecated": "Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true, + "optional": true, + "peer": true + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.4.32", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.32.tgz", + "integrity": "sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/qr-creator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/qr-creator/-/qr-creator-1.0.0.tgz", + "integrity": "sha512-C0cqfbS1P5hfqN4NhsYsUXePlk9BO+a45bAQ3xLYjBL3bOIFzoVEjs79Fado9u9BPBD3buHi3+vY+C8tHh4qMQ==" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.9.0.tgz", + "integrity": "sha512-bUHW/9N21z64gw8s6tP4c88P382Bq/L5uZDowHlHx6s/QWpjJXivIAbEw6LZthgSvlEizZBfLC4OAvWe7aoF7A==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.9.0", + "@rollup/rollup-android-arm64": "4.9.0", + "@rollup/rollup-darwin-arm64": "4.9.0", + "@rollup/rollup-darwin-x64": "4.9.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.9.0", + "@rollup/rollup-linux-arm64-gnu": "4.9.0", + "@rollup/rollup-linux-arm64-musl": "4.9.0", + "@rollup/rollup-linux-riscv64-gnu": "4.9.0", + "@rollup/rollup-linux-x64-gnu": "4.9.0", + "@rollup/rollup-linux-x64-musl": "4.9.0", + "@rollup/rollup-win32-arm64-msvc": "4.9.0", + "@rollup/rollup-win32-ia32-msvc": "4.9.0", + "@rollup/rollup-win32-x64-msvc": "4.9.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stylus": { + "version": "0.32.1", + "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.32.1.tgz", + "integrity": "sha512-QAUlDBLxjrNpf4dT991DOaXcxBKCJuICYAso29Q0RV9aI+REZIER4aRMfE5DIkV1meSiVccO27dA1Uhu+5gzEQ==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "cssom": "0.2.x", + "debug": "*", + "mkdirp": "0.3.x" + }, + "bin": { + "stylus": "bin/stylus" + }, + "engines": { + "node": "*" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/typescript": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/vite": { + "version": "5.0.9", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.9.tgz", + "integrity": "sha512-wVqMd5kp28QWGgfYPDfrj771VyHTJ4UDlCteLH7bJDGDEamaz5hV8IX6h1brSGgnnyf9lI2RnzXq/JmD0c2wwg==", + "dev": true, + "dependencies": { + "esbuild": "^0.19.3", + "postcss": "^8.4.32", + "rollup": "^4.2.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-plugin-static-copy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-1.0.0.tgz", + "integrity": "sha512-kMlrB3WDtC5GzFedNIPkpjnOAr8M11PfWOiUaONrUZ3AqogTsOmIhTt6w7Fh311wl8pN81ld7sfuOEogFJ9N8A==", + "dev": true, + "dependencies": { + "chokidar": "^3.5.3", + "fast-glob": "^3.2.11", + "fs-extra": "^11.1.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "vite": "^5.0.0" + } + } + } +} diff --git a/web_lit/package.json b/web_lit/package.json new file mode 100644 index 0000000..a81aaef --- /dev/null +++ b/web_lit/package.json @@ -0,0 +1,20 @@ +{ + "name": "web_html", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "preview": "vite preview" + }, + "dependencies": { + "@shoelace-style/shoelace": "^2.12.0", + "lit": "^3.1.0" + }, + "devDependencies": { + "typescript": "^5.2.2", + "vite": "^5.0.8", + "vite-plugin-static-copy": "^1.0.0" + } +} diff --git a/web_lit/src/book-element.ts b/web_lit/src/book-element.ts new file mode 100644 index 0000000..86672ec --- /dev/null +++ b/web_lit/src/book-element.ts @@ -0,0 +1,135 @@ +import { LitElement, PropertyValueMap, html, css } from 'lit'; +import { customElement, property, state } from 'lit/decorators.js'; +import '@shoelace-style/shoelace'; + +type BookEntry = { + Price: number, + Quantity: number +}; + +type Book = { + Asks: BookEntry[], + Bids: BookEntry[] +}; + +@customElement('book-element') +export class BookElement extends LitElement { + + static styles = [css` + .bid { + color: chartreuse; + text-align: left; + } + .ask { + color: crimson; + text-align: right; + } + div.book { + background-color: black; + height: 100%; + font-size: large; + } + table.book { + padding: 0 0 0 0; + } + .askqty { + width: 30%; + text-align: right; + } + .bidqty { + width: 30%; + text-align: right; + } + .price { + width: 40%; + text-align: right; + background-color: rgba(170, 170, 170, 0.39); + } + body { + background-color: black; + color: white; + }`]; + + @property() + symbol !: string; + + @state() + error?: string; + + @state() + book: Book = { Asks: [], Bids: [] }; + + connection?: WebSocket; + + private subscribe() { + this.book = { Asks: [], Bids: [] }; + var msg = { + symbol: this.symbol + }; + this.connection?.send(JSON.stringify(msg)); + } + + private connect() { + var serverUrl = "ws://" + window.location.hostname + ":6502"; + + if (this.connection) { + this.subscribe(); + return; + } + + this.connection = new WebSocket(serverUrl); + + this.connection.onopen = () => { + this.error = undefined; + this.subscribe(); + } + + this.connection.onmessage = (evt) => { + if (evt.data != null) { + var book = JSON.parse(evt.data); + this.book = book; + } + } + + this.connection.onerror = (evt) => { + this.error = "an error occurred " + evt + } + + this.connection.onclose = () => { + this.error = "web socket is closed" + } + } + + disconnectedCallback(): void { + super.disconnectedCallback(); + this.connection?.close(); + this.connection = undefined; + } + + protected update(changedProperties: PropertyValueMap | Map): void { + if (changedProperties.has('symbol')) { + this.connect(); + } + super.update(changedProperties); + } + + private close() { + this.connection?.close(); + this.connection = undefined; + this.dispatchEvent(new Event('closed')); + } + + render() { + return html` +
+
Order Book : ${this.symbol} this.close()}>
+
+ ${this.error ? html`

${this.error}

` : html` + + + ${this.book.Asks?.reverse().map(ask => html``)} + ${this.book.Bids?.map(bid => html``)} +
${Number(ask.Price).toFixed(2)}${ask.Quantity}
${bid.Quantity}${Number(bid.Price).toFixed(2)}
`} +
`; + } +} \ No newline at end of file diff --git a/web_lit/src/index-page.ts b/web_lit/src/index-page.ts new file mode 100644 index 0000000..31ab9f7 --- /dev/null +++ b/web_lit/src/index-page.ts @@ -0,0 +1,44 @@ +import { LitElement, PropertyValueMap, html } from 'lit' +import { customElement, state } from 'lit/decorators.js' +import { repeat } from 'lit/directives/repeat.js'; +import './book-element'; +import '@shoelace-style/shoelace'; + +@customElement('index-page') +export class IndexPage extends LitElement { + + @state() + instruments: string[] = []; + + @state() + books: string[] = []; + + protected firstUpdated(_changedProperties: PropertyValueMap | Map): void { + fetch('/api/instruments').then(response => response.json()).then(x => this.instruments = x.sort()); + } + + maybeAddSymbol(symbol: string) { + if (!this.books.includes(symbol)) { + this.books = [symbol, ...this.books] + } + } + + render() { + return html` +
+
+
Instruments

+ ${this.instruments.map(b => html` + +
Click to show book
+ this.maybeAddSymbol(b)}>${b} +
`)} +
+
+
+ ${repeat(this.books, (key: string) => key, (b: string) => html` +
+
+
`)}`; + } +} diff --git a/web_lit/src/index.css b/web_lit/src/index.css new file mode 100644 index 0000000..6081219 --- /dev/null +++ b/web_lit/src/index.css @@ -0,0 +1 @@ +@import '@shoelace-style/shoelace/dist/themes/dark.css' \ No newline at end of file diff --git a/web_lit/src/vite-env.d.ts b/web_lit/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/web_lit/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/web_lit/tsconfig.json b/web_lit/tsconfig.json new file mode 100644 index 0000000..69e31ac --- /dev/null +++ b/web_lit/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "target": "ES2020", + "experimentalDecorators": true, + "useDefineForClassFields": false, + "module": "ESNext", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"] +} diff --git a/web_lit/vite.config.ts b/web_lit/vite.config.ts new file mode 100644 index 0000000..5ebf90b --- /dev/null +++ b/web_lit/vite.config.ts @@ -0,0 +1,38 @@ +import { defineConfig } from 'vite'; +import { viteStaticCopy } from 'vite-plugin-static-copy'; + +const iconsPath = 'node_modules/@shoelace-style/shoelace/dist/assets/icons'; + +// https://vitejs.dev/config/ +export default defineConfig({ + base: '/lit', + resolve: { + alias: [ + { + find: /\/assets\/icons\/(.+)/, + replacement: `${iconsPath}/$1`, + }, + ], + }, + build: { + rollupOptions: { + // external: /^lit/, + plugins: [], + }, + }, + plugins: [ + viteStaticCopy({ + targets: [ + { + src: iconsPath, + dest: 'assets', + }, + ], + }), + ], + server: { + proxy: { + '/api': 'http://localhost:8080' + } + } +}); From d3ad300ee3b8b9d4e76e7166283bcfa0ba7b2e5f Mon Sep 17 00:00:00 2001 From: robert engels Date: Sat, 16 Dec 2023 22:01:40 -0600 Subject: [PATCH 05/52] change location for lit icons --- internal/exchange/webserver.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/exchange/webserver.go b/internal/exchange/webserver.go index 4a270ff..df3e2e7 100644 --- a/internal/exchange/webserver.go +++ b/internal/exchange/webserver.go @@ -39,6 +39,8 @@ func StartWebServer(addr string) { t = tpl go func() { + http.Handle("/assets/icons/", http.FileServer(http.Dir("web_lit/dist"))) + http.Handle("/assets/", http.StripPrefix("/assets/", http.FileServer(http.Dir("web/assets")))) http.HandleFunc("/book", bookHandler) http.HandleFunc("/instruments", instrumentsHandler) @@ -49,7 +51,7 @@ func StartWebServer(addr string) { http.HandleFunc("/", welcomeHandler) http.Handle("/lit/", http.StripPrefix("/lit/", http.FileServer(http.Dir("web_lit/dist")))) - + // add REST api http.ListenAndServe(addr, nil) }() From 86a3eb737bd805568297d298c2849ad7ae79aa3e Mon Sep 17 00:00:00 2001 From: robert engels Date: Sat, 16 Dec 2023 22:05:51 -0600 Subject: [PATCH 06/52] update README for Lit element UI --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 891d124..0630433 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,13 @@ The exchange is designed to allow for easy back-testing of trading strategies. I There is a very simple sample "algo". The program structure is applicable to many strategies that use an entry and exit price. This can be run in conjunction with the 'marketmaker' sample to test the "algo". Hint: it has a 50/50 chance of being successful EXCEPT the -market maker bid/ask spread must be accounted for - which makes it far less than a 50/50 chance of being profitable... +market maker bid/ask spread must be accounted for - which makes it far less than a 50/50 chance of being profitable... + +There are two different web interfaces available: +- the default interface at / uses Go templates and server side rendering +- the alternative UI is written with Lit, and is available at /lit + +Use `npm run build` in the web_lit directory to build the Lit assets. It was primarily developed to further my knowledge of Go and test its suitability for high-performance financial applications. From 771ae25b74625298bc7f92e5d5e317f0599117b4 Mon Sep 17 00:00:00 2001 From: robert engels Date: Wed, 24 Apr 2024 08:35:06 -0500 Subject: [PATCH 07/52] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0630433..a950048 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Uses quickfixgo or gRPC for client/server communication. Uses UDP multicast for market distribution. -It uses the high-performance fixed point library [fixed](https://github.com/robaho/fixed). +It uses the high-performance fixed point library [fixed](https://github.com/robaho/fixed) which I also developed. There is a sample client with a command line GUI, a sample "market maker", and a sample "playback". From 470084d90420bd9764f68f68b0d315fbb482b9e2 Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 4 Jun 2024 09:50:46 -0500 Subject: [PATCH 08/52] document that authenticator is an example --- internal/exchange/webserver.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/exchange/webserver.go b/internal/exchange/webserver.go index df3e2e7..da1373e 100644 --- a/internal/exchange/webserver.go +++ b/internal/exchange/webserver.go @@ -89,6 +89,7 @@ func getNonce() string { } func authenticate(handler func(w http.ResponseWriter, r *http.Request)) func(http.ResponseWriter, *http.Request) { + // This is an example authenticator. The user/password is hard-coded to guest/password. return func(w http.ResponseWriter, r *http.Request) { s := strings.SplitN(r.Header.Get("Authorization"), " ", 2) if len(s) != 2 || s[0] != "Digest" { @@ -109,6 +110,7 @@ func authenticate(handler func(w http.ResponseWriter, r *http.Request)) func(htt delete(nonceMap, nonce) + // TODO read hashed credentials from db based on user h1 := md5.Sum([]byte("guest:Restricted:password")) h2 := md5.Sum([]byte(r.Method + ":" + uri)) h3 := md5.Sum([]byte(hex.EncodeToString(h1[:]) + ":" + nonce + ":" + hex.EncodeToString(h2[:]))) From 9703c3b1b2f739a6500be271460063435592abd4 Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 17 Jun 2024 14:39:19 -0500 Subject: [PATCH 09/52] update README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a950048..673521e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ A financial exchange written in Go including complete order book, fix protocol, and market data distribution. +Check out [cpp_orderbook](https://github.com/robaho/cpp_orderbook) for a basic C++ version. + Uses quickfixgo or gRPC for client/server communication. Uses UDP multicast for market distribution. From 20265ebe5c289705ccb6ff87e219086567d90be9 Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 8 Jul 2024 08:08:16 -0500 Subject: [PATCH 10/52] add launch configs for exchange and marker maker --- .vscode/launch.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..cf2778c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,24 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch Exchange", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "cmd/exchange", + "cwd": "${workspaceFolder}" + }, + { + "name": "Launch Market Maker", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "cmd/marketmaker", + "cwd": "${workspaceFolder}" + } + ] +} \ No newline at end of file From bf0a6a348f35f1b2f2a1d06994cef94228d9aed9 Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 8 Jul 2024 08:18:21 -0500 Subject: [PATCH 11/52] fix test cases --- internal/exchange/orderbook_test.go | 42 ++++++++++++++++++----------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/internal/exchange/orderbook_test.go b/internal/exchange/orderbook_test.go index f4c096e..8ff7f2a 100644 --- a/internal/exchange/orderbook_test.go +++ b/internal/exchange/orderbook_test.go @@ -5,6 +5,7 @@ import ( "testing" "time" + . "github.com/robaho/fixed" . "github.com/robaho/go-trader/pkg/common" ) @@ -12,9 +13,18 @@ func TestWaitForKey(t *testing.T) { //time.Sleep(20*time.Second) } +type testExchangeClient struct{} +func (c testExchangeClient) SendOrderStatus(so sessionOrder){} +func (c testExchangeClient) SendTrades(trades []trade){} +func (c testExchangeClient) SessionID() string { + return "X" +} + + func TestOrderBook(t *testing.T) { // no need for locking here... var ob = orderBook{} + var ex = testExchangeClient{} var i = Equity{} @@ -23,8 +33,8 @@ func TestOrderBook(t *testing.T) { var o2 = LimitOrder(i, Sell, NewDecimal("110"), NewDecimal("10")) o2.ExchangeId = "1" - var s1 = sessionOrder{"X", o1, time.Now()} - var s2 = sessionOrder{"X", o2, time.Now()} + var s1 = sessionOrder{ex, o1, time.Now()} + var s2 = sessionOrder{ex, o2, time.Now()} ob.add(s1) ob.add(s2) @@ -42,8 +52,8 @@ func TestOrderBook(t *testing.T) { var o4 = LimitOrder(i, Buy, NewDecimal("99"), NewDecimal("30")) o4.ExchangeId = "4" - var s3 = sessionOrder{"X", o3, time.Now()} - var s4 = sessionOrder{"X", o4, time.Now()} + var s3 = sessionOrder{ex, o3, time.Now()} + var s4 = sessionOrder{ex, o4, time.Now()} ob.add(s3) ob.add(s4) @@ -58,7 +68,7 @@ func TestOrderBook(t *testing.T) { if len(b.Asks) != 1 { t.Error("incorrect asks", b.Asks, ob) } - if !b.Bids[0].Quantity.Equals(NewDecimal("20")) { + if !b.Bids[0].Quantity.Equal(NewS("20")) { t.Error("wrong quantity", b.Bids) } @@ -77,7 +87,7 @@ func TestOrderBook(t *testing.T) { if len(b.Asks) != 1 { t.Error("incorrect asks", b.Asks, &ob) } - if !b.Bids[0].Quantity.Equals(NewDecimal("20")) { + if !b.Bids[0].Quantity.Equal(NewS("20")) { t.Error("wrong quantity", b.Bids) } @@ -96,7 +106,7 @@ func TestOrderBook(t *testing.T) { if len(b.Asks) != 1 { t.Error("incorrect asks", b.Asks, &ob) } - if !b.Bids[0].Quantity.Equals(NewDecimal("10")) { + if !b.Bids[0].Quantity.Equal(NewS("10")) { t.Error("wrong quantity", b.Bids) } } @@ -104,6 +114,7 @@ func TestOrderBook(t *testing.T) { func TestOrderMatch(t *testing.T) { // no need for locking here... var ob = orderBook{} + var ex = testExchangeClient{} var i = Equity{} @@ -112,8 +123,8 @@ func TestOrderMatch(t *testing.T) { var o2 = LimitOrder(i, Sell, NewDecimal("100"), NewDecimal("10")) o2.ExchangeId = "2" - var s1 = sessionOrder{"X", o1, time.Now()} - var s2 = sessionOrder{"X", o2, time.Now()} + var s1 = sessionOrder{ex, o1, time.Now()} + var s2 = sessionOrder{ex, o2, time.Now()} ob.add(s1) @@ -129,7 +140,7 @@ func TestOrderMatch(t *testing.T) { if len(trades) != 1 { t.Error("wrong trades", trades) } - if !trades[0].quantity.Equals(NewDecimal("10")) { + if !trades[0].quantity.Equal(NewS("10")) { t.Error("wrong trade qty", trades) } @@ -137,6 +148,7 @@ func TestOrderMatch(t *testing.T) { func TestOrderMatchSweep(t *testing.T) { // no need for locking here... var ob = orderBook{} + var ex = testExchangeClient{} var i = Equity{} @@ -149,9 +161,9 @@ func TestOrderMatchSweep(t *testing.T) { var o3 = LimitOrder(i, Sell, NewDecimal("80"), NewDecimal("30")) o2.ExchangeId = "2" - var s1 = sessionOrder{"X", o1, time.Now()} - var s2 = sessionOrder{"X", o2, time.Now()} - var s3 = sessionOrder{"X", o3, time.Now()} + var s1 = sessionOrder{ex, o1, time.Now()} + var s2 = sessionOrder{ex, o2, time.Now()} + var s3 = sessionOrder{ex, o3, time.Now()} ob.add(s1) ob.add(s2) @@ -168,10 +180,10 @@ func TestOrderMatchSweep(t *testing.T) { if len(trades) != 2 { t.Error("wrong trades", trades) } - if !trades[0].quantity.Equals(NewDecimal("20")) { + if !trades[0].quantity.Equal(NewS("20")) { t.Error("wrong trade qty", trades) } - if !trades[1].quantity.Equals(NewDecimal("10")) { + if !trades[1].quantity.Equal(NewS("10")) { t.Error("wrong trade qty", trades) } From f7228543ae35a7e423a12d8719572f8ff88d074e Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 8 Jul 2024 17:00:30 -0500 Subject: [PATCH 12/52] use map of linked list for order book --- internal/exchange/orderbook.go | 114 +++++++++++++++++----------- internal/exchange/orderbook_test.go | 34 +++++---- 2 files changed, 88 insertions(+), 60 deletions(-) diff --git a/internal/exchange/orderbook.go b/internal/exchange/orderbook.go index 3d4039e..be496fa 100644 --- a/internal/exchange/orderbook.go +++ b/internal/exchange/orderbook.go @@ -1,23 +1,31 @@ package exchange -import ( - . "github.com/robaho/fixed" - "sync" -) import ( "fmt" "sort" + "sync" "sync/atomic" "time" + . "github.com/robaho/fixed" + . "github.com/robaho/go-trader/pkg/common" ) +type priceLevel struct { + orderList + price Fixed +} + +func (level priceLevel) String() string { + return fmt.Sprint("", level.price, "=", &level.orderList) +} + type orderBook struct { sync.Mutex Instrument - bids []sessionOrder - asks []sessionOrder + bids []priceLevel + asks []priceLevel } type trade struct { @@ -33,7 +41,7 @@ type trade struct { } func (ob *orderBook) String() string { - return fmt.Sprint("bids:", ob.bids, "asks:", ob.asks) + return fmt.Sprint("bids:", ob.bids, ", asks:", ob.asks) } func (ob *orderBook) add(so sessionOrder) ([]trade, error) { @@ -57,16 +65,23 @@ func (ob *orderBook) add(so sessionOrder) ([]trade, error) { return trades, nil } -func insertSort(orders []sessionOrder, so sessionOrder, direction int) []sessionOrder { - index := sort.Search(len(orders), func(i int) bool { - cmp := so.getPrice().Cmp(orders[i].getPrice()) * direction - if cmp == 0 { - cmp = CmpTime(so.time, orders[i].time) - } +func insertSort(levels []priceLevel, so sessionOrder, direction int) []priceLevel { + index := sort.Search(len(levels), func(i int) bool { + cmp := so.getPrice().Cmp(levels[i].price) * direction return cmp >= 0 }) - return append(orders[:index], append([]sessionOrder{so}, orders[index:]...)...) + if(index 0 && len(book.asks) > 0 { - bid := book.bids[0] - ask := book.asks[0] + bid := book.bids[0].orderList.top() + ask := book.asks[0].orderList.top() if !bid.getPrice().GreaterThanOrEqual(ask.getPrice()) { break @@ -137,28 +152,43 @@ func fill(order *Order, qty Fixed, price Fixed) { func (ob *orderBook) remove(so sessionOrder) error { - var removed bool - - removeFN := func(orders *[]sessionOrder, so sessionOrder) bool { - for i, v := range *orders { - if v.order == so.order { - *orders = append((*orders)[:i], (*orders)[i+1:]...) - return true - } - } - return false - } + var levels []priceLevel + var direction int if so.order.Side == Buy { - removed = removeFN(&ob.bids, so) + levels = ob.bids + direction = 1 } else { - removed = removeFN(&ob.asks, so) + levels = ob.asks + direction = -1 } - if !removed { + index := sort.Search(len(levels), func(i int) bool { + cmp := so.getPrice().Cmp(levels[i].price) * direction + return cmp >= 0 + }) + + if index Date: Tue, 16 Jul 2024 08:22:47 -0500 Subject: [PATCH 13/52] remove blank lines --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index dff187d..089908c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ node_modules out .DS_Store -__debug_bin* - +__debug_bin* \ No newline at end of file From 172abbf49e461e77e02edbd2e98476bbf725cdfb Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 16 Jul 2024 08:24:24 -0500 Subject: [PATCH 14/52] add missing orderlist files to repo --- internal/exchange/orderbook_bench_test.go | 66 ++++++++++++++++ internal/exchange/orderlist.go | 91 +++++++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 internal/exchange/orderbook_bench_test.go create mode 100644 internal/exchange/orderlist.go diff --git a/internal/exchange/orderbook_bench_test.go b/internal/exchange/orderbook_bench_test.go new file mode 100644 index 0000000..13f066f --- /dev/null +++ b/internal/exchange/orderbook_bench_test.go @@ -0,0 +1,66 @@ +package exchange + +import ( + "fmt" + "testing" + "time" + + . "github.com/robaho/fixed" + . "github.com/robaho/go-trader/pkg/common" +) + +func BenchmarkOrders(b *testing.B) { + var ob = orderBook{} + var inst = Equity{} + var ex = testExchangeClient{} + + const N_ORDERS = 1000000 + + b.ResetTimer() + + b.N = N_ORDERS*2 + + for i:=0;i Date: Tue, 16 Jul 2024 08:51:30 -0500 Subject: [PATCH 15/52] use correct version of gocui --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index fc92118..af535d9 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/quickfixgo/fix44 v0.1.0 github.com/quickfixgo/quickfix v0.9.0 github.com/robaho/fixed v0.0.0-20230815003229-929de1ea03c3 - github.com/robaho/gocui v0.3.0 + github.com/robaho/gocui v0.3.1 github.com/shopspring/decimal v1.3.1 golang.org/x/net v0.19.0 google.golang.org/grpc v1.60.0 diff --git a/go.sum b/go.sum index b16bc34..26c2c81 100644 --- a/go.sum +++ b/go.sum @@ -38,6 +38,8 @@ github.com/robaho/fixed v0.0.0-20230815003229-929de1ea03c3 h1:z2AXOxvJ7rXsbyv3s9 github.com/robaho/fixed v0.0.0-20230815003229-929de1ea03c3/go.mod h1:9YjDu6DCo4pkAT+5VYIW1CPk2nh9CnvT/x5YfhSYlnQ= github.com/robaho/gocui v0.3.0 h1:xX5dcUDCUlO/xXA6Jzh979t+7tLkLM4KeToIioJrfrE= github.com/robaho/gocui v0.3.0/go.mod h1:pGoMrUaM3DO8ORottR2+ffXjklvRVW0pUnXF77AK6Ow= +github.com/robaho/gocui v0.3.1 h1:8CfmzgaK/Cgx3tMEsYDyvxGIkHZ6pYn5m826YG0oUeo= +github.com/robaho/gocui v0.3.1/go.mod h1:pGoMrUaM3DO8ORottR2+ffXjklvRVW0pUnXF77AK6Ow= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= From 7b96b0566d33ddc51f0e98f48c4618c22b15f6d4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 Jul 2024 14:02:21 +0000 Subject: [PATCH 16/52] Bump braces from 3.0.2 to 3.0.3 in /web_lit Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] --- web_lit/package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web_lit/package-lock.json b/web_lit/package-lock.json index 686d9c0..515c255 100644 --- a/web_lit/package-lock.json +++ b/web_lit/package-lock.json @@ -711,12 +711,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -853,9 +853,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" From ab75e19c2936cb2e8ae42cf69f6347d3fc37a539 Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 16 Jul 2024 20:54:32 -0500 Subject: [PATCH 17/52] fix issue #16: remove from order book --- internal/exchange/orderbook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/exchange/orderbook.go b/internal/exchange/orderbook.go index be496fa..dc54a2f 100644 --- a/internal/exchange/orderbook.go +++ b/internal/exchange/orderbook.go @@ -168,7 +168,7 @@ func (ob *orderBook) remove(so sessionOrder) error { return cmp >= 0 }) - if index=len(levels) || levels[index].price.Cmp(so.getPrice())!=0 { return OrderNotFound } From d4bec5b1cf209781dd2d936345832b119dc7085e Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 16 Jul 2024 20:55:10 -0500 Subject: [PATCH 18/52] fix logging of unknown symbol --- cmd/marketmaker/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/marketmaker/main.go b/cmd/marketmaker/main.go index b0f95f5..18850a3 100644 --- a/cmd/marketmaker/main.go +++ b/cmd/marketmaker/main.go @@ -87,7 +87,7 @@ func main() { instrument := IMap.GetBySymbol(callback.symbol) if instrument == nil { - log.Fatal("unable symbol", symbol) + log.Fatal("unknown symbol", callback.symbol) } var updates uint64 @@ -148,12 +148,12 @@ func main() { <-callback.ch } } - h.Add(float64(time.Now().Sub(now).Nanoseconds())) + h.Add(float64(time.Since(now).Nanoseconds())) if *delay != 0 { time.Sleep(time.Duration(int64(*delay)) * time.Millisecond) } atomic.AddUint64(&updates, 1) - if time.Now().Sub(start).Seconds() > 10 { + if time.Since(start).Seconds() > 10 { fmt.Printf("updates per second %d, avg rtt %dus, 10%% rtt %dus 99%% rtt %dus\n", updates/10, int(h.Mean()/1000.0), int(h.Quantile(.10)/1000.0), int(h.Quantile(.99)/1000.0)) updates = 0 start = time.Now() From 094bcf8b07027eefd91a3a8f0e02045b9d3edadc Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 16 Jul 2024 20:55:33 -0500 Subject: [PATCH 19/52] add more pseudo symbols for testing --- configs/instruments.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/configs/instruments.txt b/configs/instruments.txt index 907ba78..a8110ba 100644 --- a/configs/instruments.txt +++ b/configs/instruments.txt @@ -13,3 +13,22 @@ 3 AMZN 4 GOOG 5 FB +11 S1 +12 S2 +13 S3 +14 S4 +15 S5 +16 S6 +17 S7 +18 S8 +19 S9 +20 S10 +21 S11 +22 S12 +23 S13 +24 S14 +25 S15 +26 S16 +27 S17 +28 S18 +29 S19 From d60cd10dabfacd661d57d262458b508b48279171 Mon Sep 17 00:00:00 2001 From: napoleon665 <136514136+napoleon665@users.noreply.github.com> Date: Wed, 17 Jul 2024 02:08:43 +0000 Subject: [PATCH 20/52] feat: print error not fix msg --- internal/exchange/marketdata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/exchange/marketdata.go b/internal/exchange/marketdata.go index 7c2f90c..ac748d2 100644 --- a/internal/exchange/marketdata.go +++ b/internal/exchange/marketdata.go @@ -245,7 +245,7 @@ func startMarketData() { props, err := NewProperties("configs/got_settings") if err != nil { - panic("unable to read multicast addr") + panic(err) } saddr := props.GetString("multicast_addr", "") if saddr == "" { From 0cd80483095561e9bf28efb2b43f1b519dad882a Mon Sep 17 00:00:00 2001 From: robert engels Date: Wed, 17 Jul 2024 13:38:12 -0500 Subject: [PATCH 21/52] upgrade deps --- web_lit/package-lock.json | 751 ++++++++++++++++++++++---------------- web_lit/package.json | 5 +- 2 files changed, 432 insertions(+), 324 deletions(-) diff --git a/web_lit/package-lock.json b/web_lit/package-lock.json index 515c255..4e61feb 100644 --- a/web_lit/package-lock.json +++ b/web_lit/package-lock.json @@ -12,27 +12,47 @@ "lit": "^3.1.0" }, "devDependencies": { - "typescript": "^5.2.2", - "vite": "^5.0.8", + "@types/node": "^20.14.11", + "typescript": "^5.5.3", + "vite": "^5.3.4", "vite-plugin-static-copy": "^1.0.0" } }, "node_modules/@ctrl/tinycolor": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-4.0.2.tgz", - "integrity": "sha512-fKQinXE9pJ83J1n+C3rDl2xNLJwfoYNvXLRy5cYZA9hBJJw2q+sbb/AOSNKmLxnTWyNTmy4994dueSwP4opi5g==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-4.1.0.tgz", + "integrity": "sha512-WyOx8cJQ+FQus4Mm4uPIZA64gbk3Wxh0so5Lcii0aJifqwoVOlfFtorjLE0Hen4OYyHZMXDWqMmaQemBhgxFRQ==", + "license": "MIT", "engines": { "node": ">=14" } }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@esbuild/android-arm": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.9.tgz", - "integrity": "sha512-jkYjjq7SdsWuNI6b5quymW0oC83NN5FdRPuCbs9HZ02mfVdAP8B8eeqLSYU3gb6OJEaY5CQabtTFbqBf26H3GA==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" @@ -42,13 +62,14 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.9.tgz", - "integrity": "sha512-q4cR+6ZD0938R19MyEW3jEsMzbb/1rulLXiNAJQADD/XYp7pT+rOS5JGxvpRW8dFDEfjW4wLgC/3FXIw4zYglQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" @@ -58,13 +79,14 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.9.tgz", - "integrity": "sha512-KOqoPntWAH6ZxDwx1D6mRntIgZh9KodzgNOy5Ebt9ghzffOk9X2c1sPwtM9P+0eXbefnDhqYfkh5PLP5ULtWFA==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" @@ -74,13 +96,14 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.9.tgz", - "integrity": "sha512-KBJ9S0AFyLVx2E5D8W0vExqRW01WqRtczUZ8NRu+Pi+87opZn5tL4Y0xT0mA4FtHctd0ZgwNoN639fUUGlNIWw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -90,13 +113,14 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.9.tgz", - "integrity": "sha512-vE0VotmNTQaTdX0Q9dOHmMTao6ObjyPm58CHZr1UK7qpNleQyxlFlNCaHsHx6Uqv86VgPmR4o2wdNq3dP1qyDQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -106,13 +130,14 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.9.tgz", - "integrity": "sha512-uFQyd/o1IjiEk3rUHSwUKkqZwqdvuD8GevWF065eqgYfexcVkxh+IJgwTaGZVu59XczZGcN/YMh9uF1fWD8j1g==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" @@ -122,13 +147,14 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.9.tgz", - "integrity": "sha512-WMLgWAtkdTbTu1AWacY7uoj/YtHthgqrqhf1OaEWnZb7PQgpt8eaA/F3LkV0E6K/Lc0cUr/uaVP/49iE4M4asA==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" @@ -138,13 +164,14 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.9.tgz", - "integrity": "sha512-C/ChPohUYoyUaqn1h17m/6yt6OB14hbXvT8EgM1ZWaiiTYz7nWZR0SYmMnB5BzQA4GXl3BgBO1l8MYqL/He3qw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -154,13 +181,14 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.9.tgz", - "integrity": "sha512-PiPblfe1BjK7WDAKR1Cr9O7VVPqVNpwFcPWgfn4xu0eMemzRp442hXyzF/fSwgrufI66FpHOEJk0yYdPInsmyQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -170,13 +198,14 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.9.tgz", - "integrity": "sha512-f37i/0zE0MjDxijkPSQw1CO/7C27Eojqb+r3BbHVxMLkj8GCa78TrBZzvPyA/FNLUMzP3eyHCVkAopkKVja+6Q==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", "cpu": [ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -186,13 +215,14 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.9.tgz", - "integrity": "sha512-t6mN147pUIf3t6wUt3FeumoOTPfmv9Cc6DQlsVBpB7eCpLOqQDyWBP1ymXn1lDw4fNUSb/gBcKAmvTP49oIkaA==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", "cpu": [ "loong64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -202,13 +232,14 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.9.tgz", - "integrity": "sha512-jg9fujJTNTQBuDXdmAg1eeJUL4Jds7BklOTkkH80ZgQIoCTdQrDaHYgbFZyeTq8zbY+axgptncko3v9p5hLZtw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", "cpu": [ "mips64el" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -218,13 +249,14 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.9.tgz", - "integrity": "sha512-tkV0xUX0pUUgY4ha7z5BbDS85uI7ABw3V1d0RNTii7E9lbmV8Z37Pup2tsLV46SQWzjOeyDi1Q7Wx2+QM8WaCQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", "cpu": [ "ppc64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -234,13 +266,14 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.9.tgz", - "integrity": "sha512-DfLp8dj91cufgPZDXr9p3FoR++m3ZJ6uIXsXrIvJdOjXVREtXuQCjfMfvmc3LScAVmLjcfloyVtpn43D56JFHg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", "cpu": [ "riscv64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -250,13 +283,14 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.9.tgz", - "integrity": "sha512-zHbglfEdC88KMgCWpOl/zc6dDYJvWGLiUtmPRsr1OgCViu3z5GncvNVdf+6/56O2Ca8jUU+t1BW261V6kp8qdw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", "cpu": [ "s390x" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -266,13 +300,14 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.9.tgz", - "integrity": "sha512-JUjpystGFFmNrEHQnIVG8hKwvA2DN5o7RqiO1CVX8EN/F/gkCjkUMgVn6hzScpwnJtl2mPR6I9XV1oW8k9O+0A==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -282,13 +317,14 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.9.tgz", - "integrity": "sha512-GThgZPAwOBOsheA2RUlW5UeroRfESwMq/guy8uEe3wJlAOjpOXuSevLRd70NZ37ZrpO6RHGHgEHvPg1h3S1Jug==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "netbsd" @@ -298,13 +334,14 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.9.tgz", - "integrity": "sha512-Ki6PlzppaFVbLnD8PtlVQfsYw4S9n3eQl87cqgeIw+O3sRr9IghpfSKY62mggdt1yCSZ8QWvTZ9jo9fjDSg9uw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "openbsd" @@ -314,13 +351,14 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.9.tgz", - "integrity": "sha512-MLHj7k9hWh4y1ddkBpvRj2b9NCBhfgBt3VpWbHQnXRedVun/hC7sIyTGDGTfsGuXo4ebik2+3ShjcPbhtFwWDw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "sunos" @@ -330,13 +368,14 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.9.tgz", - "integrity": "sha512-GQoa6OrQ8G08guMFgeXPH7yE/8Dt0IfOGWJSfSH4uafwdC7rWwrfE6P9N8AtPGIjUzdo2+7bN8Xo3qC578olhg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -346,13 +385,14 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.9.tgz", - "integrity": "sha512-UOozV7Ntykvr5tSOlGCrqU3NBr3d8JqPes0QWN2WOXfvkWVGRajC+Ym0/Wj88fUgecUCLDdJPDF0Nna2UK3Qtg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", "cpu": [ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -362,13 +402,14 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.9.tgz", - "integrity": "sha512-oxoQgglOP7RH6iasDrhY+R/3cHrfwIDvRlT4CGChflq6twk8iENeVvMJjmvBb94Ik1Z+93iGO27err7w6l54GQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -378,46 +419,52 @@ } }, "node_modules/@floating-ui/core": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.2.tgz", - "integrity": "sha512-Ii3MrfY/GAIN3OhXNzpCKaLxHQfJF9qvwq/kEJYdqDxeIHa01K8sldugal6TmeeXl+WMvhv9cnVzUTaFFJF09A==", + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.4.tgz", + "integrity": "sha512-a4IowK4QkXl4SCWTGUR0INAfEOX3wtsYw3rKK5InQEHMGObkR8Xk44qYQD9P4r6HHw0iIfK6GUKECmY8sTkqRA==", + "license": "MIT", "dependencies": { - "@floating-ui/utils": "^0.1.3" + "@floating-ui/utils": "^0.2.4" } }, "node_modules/@floating-ui/dom": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.3.tgz", - "integrity": "sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==", + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.7.tgz", + "integrity": "sha512-wmVfPG5o2xnKDU4jx/m4w5qva9FWHcnZ8BvzEe90D/RpwsJaTAVYPEPdQ8sbr/N8zZTAHlZUTQdqg8ZUbzHmng==", + "license": "MIT", "dependencies": { - "@floating-ui/core": "^1.4.2", - "@floating-ui/utils": "^0.1.3" + "@floating-ui/core": "^1.6.0", + "@floating-ui/utils": "^0.2.4" } }, "node_modules/@floating-ui/utils": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.6.tgz", - "integrity": "sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==" + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.4.tgz", + "integrity": "sha512-dWO2pw8hhi+WrXq1YJy2yCuWoL20PddgGaqTgVe4cOS9Q6qklXCiA1tJEqX6BEwRNSCP84/afac9hd4MS+zEUA==", + "license": "MIT" }, "node_modules/@lit-labs/ssr-dom-shim": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.1.2.tgz", - "integrity": "sha512-jnOD+/+dSrfTWYfSXBXlo5l5f0q1UuJo3tkbMDCYA2lKUYq79jaxqtGEvnRoh049nt1vdo1+45RinipU6FGY2g==" + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.0.tgz", + "integrity": "sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==", + "license": "BSD-3-Clause" }, "node_modules/@lit/react": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@lit/react/-/react-1.0.2.tgz", - "integrity": "sha512-UJ5TQ46DPcJDIzyjbwbj6Iye0XcpCxL2yb03zcWq1BpWchpXS3Z0BPVhg7zDfZLF6JemPml8u/gt/+KwJ/23sg==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@lit/react/-/react-1.0.5.tgz", + "integrity": "sha512-RSHhrcuSMa4vzhqiTenzXvtQ6QDq3hSPsnHHO3jaPmmvVFeoNNm4DHoQ0zLdKAUvY3wP3tTENSUf7xpyVfrDEA==", + "license": "BSD-3-Clause", "peerDependencies": { "@types/react": "17 || 18" } }, "node_modules/@lit/reactive-element": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.2.tgz", - "integrity": "sha512-SVOwLAWUQg3Ji1egtOt1UiFe4zdDpnWHyc5qctSceJ5XIu0Uc76YmGpIjZgx9YJ0XtdW0Jm507sDvjOu+HnB8w==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.4.tgz", + "integrity": "sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==", + "license": "BSD-3-Clause", "dependencies": { - "@lit-labs/ssr-dom-shim": "^1.1.2" + "@lit-labs/ssr-dom-shim": "^1.2.0" } }, "node_modules/@nodelib/fs.scandir": { @@ -425,6 +472,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -438,6 +486,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } @@ -447,6 +496,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -456,169 +506,224 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.0.tgz", - "integrity": "sha512-+1ge/xmaJpm1KVBuIH38Z94zj9fBD+hp+/5WLaHgyY8XLq1ibxk/zj6dTXaqM2cAbYKq8jYlhHd6k05If1W5xA==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.1.tgz", + "integrity": "sha512-lncuC4aHicncmbORnx+dUaAgzee9cm/PbIqgWz1PpXuwc+sa1Ct83tnqUDy/GFKleLiN7ZIeytM6KJ4cAn1SxA==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.0.tgz", - "integrity": "sha512-im6hUEyQ7ZfoZdNvtwgEJvBWZYauC9KVKq1w58LG2Zfz6zMd8gRrbN+xCVoqA2hv/v6fm9lp5LFGJ3za8EQH3A==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.1.tgz", + "integrity": "sha512-F/tkdw0WSs4ojqz5Ovrw5r9odqzFjb5LIgHdHZG65dFI1lWTWRVy32KDJLKRISHgJvqUeUhdIvy43fX41znyDg==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.0.tgz", - "integrity": "sha512-u7aTMskN6Dmg1lCT0QJ+tINRt+ntUrvVkhbPfFz4bCwRZvjItx2nJtwJnJRlKMMaQCHRjrNqHRDYvE4mBm3DlQ==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.1.tgz", + "integrity": "sha512-vk+ma8iC1ebje/ahpxpnrfVQJibTMyHdWpOGZ3JpQ7Mgn/3QNHmPq7YwjZbIE7km73dH5M1e6MRRsnEBW7v5CQ==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.0.tgz", - "integrity": "sha512-8FvEl3w2ExmpcOmX5RJD0yqXcVSOqAJJUJ29Lca29Ik+3zPS1yFimr2fr5JSZ4Z5gt8/d7WqycpgkX9nocijSw==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.1.tgz", + "integrity": "sha512-IgpzXKauRe1Tafcej9STjSSuG0Ghu/xGYH+qG6JwsAUxXrnkvNHcq/NL6nz1+jzvWAnQkuAJ4uIwGB48K9OCGA==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.9.0.tgz", - "integrity": "sha512-lHoKYaRwd4gge+IpqJHCY+8Vc3hhdJfU6ukFnnrJasEBUvVlydP8PuwndbWfGkdgSvZhHfSEw6urrlBj0TSSfg==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.1.tgz", + "integrity": "sha512-P9bSiAUnSSM7EmyRK+e5wgpqai86QOSv8BwvkGjLwYuOpaeomiZWifEos517CwbG+aZl1T4clSE1YqqH2JRs+g==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.1.tgz", + "integrity": "sha512-5RnjpACoxtS+aWOI1dURKno11d7krfpGDEn19jI8BuWmSBbUC4ytIADfROM1FZrFhQPSoP+KEa3NlEScznBTyQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.9.0.tgz", - "integrity": "sha512-JbEPfhndYeWHfOSeh4DOFvNXrj7ls9S/2omijVsao+LBPTPayT1uKcK3dHW3MwDJ7KO11t9m2cVTqXnTKpeaiw==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.1.tgz", + "integrity": "sha512-8mwmGD668m8WaGbthrEYZ9CBmPug2QPGWxhJxh/vCgBjro5o96gL04WLlg5BA233OCWLqERy4YUzX3bJGXaJgQ==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.9.0.tgz", - "integrity": "sha512-ahqcSXLlcV2XUBM3/f/C6cRoh7NxYA/W7Yzuv4bDU1YscTFw7ay4LmD7l6OS8EMhTNvcrWGkEettL1Bhjf+B+w==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.1.tgz", + "integrity": "sha512-dJX9u4r4bqInMGOAQoGYdwDP8lQiisWb9et+T84l2WXk41yEej8v2iGKodmdKimT8cTAYt0jFb+UEBxnPkbXEQ==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.1.tgz", + "integrity": "sha512-V72cXdTl4EI0x6FNmho4D502sy7ed+LuVW6Ym8aI6DRQ9hQZdp5sj0a2usYOlqvFBNKQnLQGwmYnujo2HvjCxQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.9.0.tgz", - "integrity": "sha512-uwvOYNtLw8gVtrExKhdFsYHA/kotURUmZYlinH2VcQxNCQJeJXnkmWgw2hI9Xgzhgu7J9QvWiq9TtTVwWMDa+w==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.1.tgz", + "integrity": "sha512-f+pJih7sxoKmbjghrM2RkWo2WHUW8UbfxIQiWo5yeCaCM0TveMEuAzKJte4QskBp1TIinpnRcxkquY+4WuY/tg==", "cpu": [ "riscv64" ], "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.1.tgz", + "integrity": "sha512-qb1hMMT3Fr/Qz1OKovCuUM11MUNLUuHeBC2DPPAWUYYUAOFWaxInaTwTQmc7Fl5La7DShTEpmYwgdt2hG+4TEg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.9.0.tgz", - "integrity": "sha512-m6pkSwcZZD2LCFHZX/zW2aLIISyzWLU3hrLLzQKMI12+OLEzgruTovAxY5sCZJkipklaZqPy/2bEEBNjp+Y7xg==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.1.tgz", + "integrity": "sha512-7O5u/p6oKUFYjRbZkL2FLbwsyoJAjyeXHCU3O4ndvzg2OFO2GinFPSJFGbiwFDaCFc+k7gs9CF243PwdPQFh5g==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.9.0.tgz", - "integrity": "sha512-VFAC1RDRSbU3iOF98X42KaVicAfKf0m0OvIu8dbnqhTe26Kh6Ym9JrDulz7Hbk7/9zGc41JkV02g+p3BivOdAg==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.1.tgz", + "integrity": "sha512-pDLkYITdYrH/9Cv/Vlj8HppDuLMDUBmgsM0+N+xLtFd18aXgM9Nyqupb/Uw+HeidhfYg2lD6CXvz6CjoVOaKjQ==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.9.0.tgz", - "integrity": "sha512-9jPgMvTKXARz4inw6jezMLA2ihDBvgIU9Ml01hjdVpOcMKyxFBJrn83KVQINnbeqDv0+HdO1c09hgZ8N0s820Q==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.1.tgz", + "integrity": "sha512-W2ZNI323O/8pJdBGil1oCauuCzmVd9lDmWBBqxYZcOqWD6aWqJtVBQ1dFrF4dYpZPks6F+xCZHfzG5hYlSHZ6g==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.9.0.tgz", - "integrity": "sha512-WE4pT2kTXQN2bAv40Uog0AsV7/s9nT9HBWXAou8+++MBCnY51QS02KYtm6dQxxosKi1VIz/wZIrTQO5UP2EW+Q==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.1.tgz", + "integrity": "sha512-ELfEX1/+eGZYMaCIbK4jqLxO1gyTSOIlZr6pbC4SRYFaSIDVKOnZNMdoZ+ON0mrFDp4+H5MhwNC1H/AhE3zQLg==", "cpu": [ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.9.0.tgz", - "integrity": "sha512-aPP5Q5AqNGuT0tnuEkK/g4mnt3ZhheiXrDIiSVIHN9mcN21OyXDVbEMqmXPE7e2OplNLDkcvV+ZoGJa2ZImFgw==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.1.tgz", + "integrity": "sha512-yjk2MAkQmoaPYCSu35RLJ62+dz358nE83VfTePJRp8CG7aMg25mEJYpXFiD+NcevhX8LxD5OP5tktPXnXN7GDw==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -628,6 +733,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@shoelace-style/animations/-/animations-1.1.0.tgz", "integrity": "sha512-Be+cahtZyI2dPKRm8EZSx3YJQ+jLvEcn3xzRP7tM4tqBnvd/eW/64Xh0iOf0t2w5P8iJKfdBbpVNE9naCaOf2g==", + "license": "MIT", "funding": { "type": "individual", "url": "https://github.com/sponsors/claviska" @@ -636,12 +742,14 @@ "node_modules/@shoelace-style/localize": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.2.tgz", - "integrity": "sha512-Hf45HeO+vdQblabpyZOTxJ4ZeZsmIUYXXPmoYrrR4OJ5OKxL+bhMz5mK8JXgl7HsoEowfz7+e248UGi861de9Q==" + "integrity": "sha512-Hf45HeO+vdQblabpyZOTxJ4ZeZsmIUYXXPmoYrrR4OJ5OKxL+bhMz5mK8JXgl7HsoEowfz7+e248UGi861de9Q==", + "license": "MIT" }, "node_modules/@shoelace-style/shoelace": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@shoelace-style/shoelace/-/shoelace-2.12.0.tgz", - "integrity": "sha512-1Amirj0c5WLkymDcP6ZQmBfMC6zTNmGGK7/mjmGq4yhljrVaECVlBoKm0tfmo1jd3r8XJ8xYbQ8cxPAlwiDDvw==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/@shoelace-style/shoelace/-/shoelace-2.15.1.tgz", + "integrity": "sha512-3ecUw8gRwOtcZQ8kWWkjk4FTfObYQ/XIl3aRhxprESoOYV1cYhloYPsmQY38UoL3+pwJiZb5+LzX0l3u3Zl0GA==", + "license": "MIT", "dependencies": { "@ctrl/tinycolor": "^4.0.2", "@floating-ui/dom": "^1.5.3", @@ -660,39 +768,53 @@ "url": "https://github.com/sponsors/claviska" } }, + "node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "20.14.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.11.tgz", + "integrity": "sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~5.26.4" + } + }, "node_modules/@types/prop-types": { - "version": "15.7.11", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", - "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==", + "version": "15.7.12", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz", + "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==", + "license": "MIT", "peer": true }, "node_modules/@types/react": { - "version": "18.2.45", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.45.tgz", - "integrity": "sha512-TtAxCNrlrBp8GoeEp1npd5g+d/OejJHFxS3OWmrPBMFaVQMSN0OFySozJio5BHxTuTeug00AVXVAjfDSfk+lUg==", + "version": "18.3.3", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.3.tgz", + "integrity": "sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==", + "license": "MIT", "peer": true, "dependencies": { "@types/prop-types": "*", - "@types/scheduler": "*", "csstype": "^3.0.2" } }, - "node_modules/@types/scheduler": { - "version": "0.16.8", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz", - "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==", - "peer": true - }, "node_modules/@types/trusted-types": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", - "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "license": "MIT" }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, + "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -702,12 +824,16 @@ } }, "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/braces": { @@ -715,6 +841,7 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, + "license": "MIT", "dependencies": { "fill-range": "^7.1.1" }, @@ -723,16 +850,11 @@ } }, "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "license": "MIT", "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -745,6 +867,9 @@ "engines": { "node": ">= 8.10.0" }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, "optionalDependencies": { "fsevents": "~2.3.2" } @@ -752,50 +877,23 @@ "node_modules/composed-offset-position": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/composed-offset-position/-/composed-offset-position-0.0.4.tgz", - "integrity": "sha512-vMlvu1RuNegVE0YsCDSV/X4X10j56mq7PCIyOKK74FxkXzGLwhOUmdkJLSdOBOMwWycobGUMgft2lp+YgTe8hw==" - }, - "node_modules/cssom": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.2.5.tgz", - "integrity": "sha512-b9ecqKEfWrNcyzx5+1nmcfi80fPp8dVM8rlAh7fFK14PZbNjp++gRjyZTZfLJQa/Lw0qeCJho7WBIl0nw0v6HA==", - "dev": true, - "optional": true, - "peer": true, - "engines": { - "node": ">=0.2.0" - } + "integrity": "sha512-vMlvu1RuNegVE0YsCDSV/X4X10j56mq7PCIyOKK74FxkXzGLwhOUmdkJLSdOBOMwWycobGUMgft2lp+YgTe8hw==", + "license": "MIT" }, "node_modules/csstype": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "license": "MIT", "peer": true }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, "node_modules/esbuild": { - "version": "0.19.9", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.9.tgz", - "integrity": "sha512-U9CHtKSy+EpPsEBa+/A2gMs/h3ylBC0H0KSqIg7tpztHerLi6nrrcoUJAkNCEPumx8yJ+Byic4BVwHgRbN0TBg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", "dev": true, "hasInstallScript": true, + "license": "MIT", "bin": { "esbuild": "bin/esbuild" }, @@ -803,28 +901,29 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/android-arm": "0.19.9", - "@esbuild/android-arm64": "0.19.9", - "@esbuild/android-x64": "0.19.9", - "@esbuild/darwin-arm64": "0.19.9", - "@esbuild/darwin-x64": "0.19.9", - "@esbuild/freebsd-arm64": "0.19.9", - "@esbuild/freebsd-x64": "0.19.9", - "@esbuild/linux-arm": "0.19.9", - "@esbuild/linux-arm64": "0.19.9", - "@esbuild/linux-ia32": "0.19.9", - "@esbuild/linux-loong64": "0.19.9", - "@esbuild/linux-mips64el": "0.19.9", - "@esbuild/linux-ppc64": "0.19.9", - "@esbuild/linux-riscv64": "0.19.9", - "@esbuild/linux-s390x": "0.19.9", - "@esbuild/linux-x64": "0.19.9", - "@esbuild/netbsd-x64": "0.19.9", - "@esbuild/openbsd-x64": "0.19.9", - "@esbuild/sunos-x64": "0.19.9", - "@esbuild/win32-arm64": "0.19.9", - "@esbuild/win32-ia32": "0.19.9", - "@esbuild/win32-x64": "0.19.9" + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" } }, "node_modules/fast-glob": { @@ -832,6 +931,7 @@ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -844,10 +944,11 @@ } }, "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", "dev": true, + "license": "ISC", "dependencies": { "reusify": "^1.0.4" } @@ -857,6 +958,7 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -869,6 +971,7 @@ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", "dev": true, + "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -884,6 +987,7 @@ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -897,6 +1001,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -908,13 +1013,15 @@ "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, + "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" }, @@ -927,6 +1034,7 @@ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -936,6 +1044,7 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -948,6 +1057,7 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -957,6 +1067,7 @@ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "dev": true, + "license": "MIT", "dependencies": { "universalify": "^2.0.0" }, @@ -965,29 +1076,32 @@ } }, "node_modules/lit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", - "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.4.tgz", + "integrity": "sha512-q6qKnKXHy2g1kjBaNfcoLlgbI3+aSOZ9Q4tiGa9bGYXq5RBXxkVTqTIVmP2VWMp29L4GyvCFm8ZQ2o56eUAMyA==", + "license": "BSD-3-Clause", "dependencies": { - "@lit/reactive-element": "^2.0.0", - "lit-element": "^4.0.0", - "lit-html": "^3.1.0" + "@lit/reactive-element": "^2.0.4", + "lit-element": "^4.0.4", + "lit-html": "^3.1.2" } }, "node_modules/lit-element": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.0.2.tgz", - "integrity": "sha512-/W6WQZUa5VEXwC7H9tbtDMdSs9aWil3Ou8hU6z2cOKWbsm/tXPAcsoaHVEtrDo0zcOIE5GF6QgU55tlGL2Nihg==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.0.6.tgz", + "integrity": "sha512-U4sdJ3CSQip7sLGZ/uJskO5hGiqtlpxndsLr6mt3IQIjheg93UKYeGQjWMRql1s/cXNOaRrCzC2FQwjIwSUqkg==", + "license": "BSD-3-Clause", "dependencies": { - "@lit-labs/ssr-dom-shim": "^1.1.2", - "@lit/reactive-element": "^2.0.0", - "lit-html": "^3.1.0" + "@lit-labs/ssr-dom-shim": "^1.2.0", + "@lit/reactive-element": "^2.0.4", + "lit-html": "^3.1.2" } }, "node_modules/lit-html": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.1.0.tgz", - "integrity": "sha512-FwAjq3iNsaO6SOZXEIpeROlJLUlrbyMkn4iuv4f4u1H40Jw8wkeR/OUXZUHUoiYabGk8Y4Y0F/rgq+R4MrOLmA==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.1.4.tgz", + "integrity": "sha512-yKKO2uVv7zYFHlWMfZmqc+4hkmSbFp8jgjdZY9vvR9jr4J8fH6FUMXhr+ljfELgmjpvlF7Z1SJ5n5/Jeqtc9YA==", + "license": "BSD-3-Clause", "dependencies": { "@types/trusted-types": "^2.0.2" } @@ -997,43 +1111,25 @@ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", "dev": true, + "license": "MIT", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { "node": ">=8.6" } }, - "node_modules/mkdirp": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.4.tgz", - "integrity": "sha512-sZObLj65ImOahHTaycVJF559muyAvv1hYyBQSfVfZq9ajpgY9Da+cRQzbXDfsKJTwUMUABRjBMDHieYqbHKx0g==", - "deprecated": "Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)", - "dev": true, - "optional": true, - "peer": true, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true, - "optional": true, - "peer": true - }, "node_modules/nanoid": { "version": "3.3.7", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", @@ -1045,6 +1141,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -1057,21 +1154,24 @@ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "dev": true, + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -1080,9 +1180,9 @@ } }, "node_modules/postcss": { - "version": "8.4.32", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.32.tgz", - "integrity": "sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==", + "version": "8.4.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.39.tgz", + "integrity": "sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==", "dev": true, "funding": [ { @@ -1098,10 +1198,11 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "nanoid": "^3.3.7", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" + "picocolors": "^1.0.1", + "source-map-js": "^1.2.0" }, "engines": { "node": "^10 || ^12 || >=14" @@ -1110,7 +1211,8 @@ "node_modules/qr-creator": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/qr-creator/-/qr-creator-1.0.0.tgz", - "integrity": "sha512-C0cqfbS1P5hfqN4NhsYsUXePlk9BO+a45bAQ3xLYjBL3bOIFzoVEjs79Fado9u9BPBD3buHi3+vY+C8tHh4qMQ==" + "integrity": "sha512-C0cqfbS1P5hfqN4NhsYsUXePlk9BO+a45bAQ3xLYjBL3bOIFzoVEjs79Fado9u9BPBD3buHi3+vY+C8tHh4qMQ==", + "license": "MIT" }, "node_modules/queue-microtask": { "version": "1.2.3", @@ -1130,13 +1232,15 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, + "license": "MIT", "dependencies": { "picomatch": "^2.2.1" }, @@ -1149,16 +1253,21 @@ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, + "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" } }, "node_modules/rollup": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.9.0.tgz", - "integrity": "sha512-bUHW/9N21z64gw8s6tP4c88P382Bq/L5uZDowHlHx6s/QWpjJXivIAbEw6LZthgSvlEizZBfLC4OAvWe7aoF7A==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.18.1.tgz", + "integrity": "sha512-Elx2UT8lzxxOXMpy5HWQGZqkrQOtrVDDa/bm9l10+U4rQnVzbL/LgZ4NOM1MPIDyHk69W4InuYDF5dzRh4Kw1A==", "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.5" + }, "bin": { "rollup": "dist/bin/rollup" }, @@ -1167,19 +1276,22 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.9.0", - "@rollup/rollup-android-arm64": "4.9.0", - "@rollup/rollup-darwin-arm64": "4.9.0", - "@rollup/rollup-darwin-x64": "4.9.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.9.0", - "@rollup/rollup-linux-arm64-gnu": "4.9.0", - "@rollup/rollup-linux-arm64-musl": "4.9.0", - "@rollup/rollup-linux-riscv64-gnu": "4.9.0", - "@rollup/rollup-linux-x64-gnu": "4.9.0", - "@rollup/rollup-linux-x64-musl": "4.9.0", - "@rollup/rollup-win32-arm64-msvc": "4.9.0", - "@rollup/rollup-win32-ia32-msvc": "4.9.0", - "@rollup/rollup-win32-x64-msvc": "4.9.0", + "@rollup/rollup-android-arm-eabi": "4.18.1", + "@rollup/rollup-android-arm64": "4.18.1", + "@rollup/rollup-darwin-arm64": "4.18.1", + "@rollup/rollup-darwin-x64": "4.18.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.18.1", + "@rollup/rollup-linux-arm-musleabihf": "4.18.1", + "@rollup/rollup-linux-arm64-gnu": "4.18.1", + "@rollup/rollup-linux-arm64-musl": "4.18.1", + "@rollup/rollup-linux-powerpc64le-gnu": "4.18.1", + "@rollup/rollup-linux-riscv64-gnu": "4.18.1", + "@rollup/rollup-linux-s390x-gnu": "4.18.1", + "@rollup/rollup-linux-x64-gnu": "4.18.1", + "@rollup/rollup-linux-x64-musl": "4.18.1", + "@rollup/rollup-win32-arm64-msvc": "4.18.1", + "@rollup/rollup-win32-ia32-msvc": "4.18.1", + "@rollup/rollup-win32-x64-msvc": "4.18.1", "fsevents": "~2.3.2" } }, @@ -1202,43 +1314,27 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } }, "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, - "node_modules/stylus": { - "version": "0.32.1", - "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.32.1.tgz", - "integrity": "sha512-QAUlDBLxjrNpf4dT991DOaXcxBKCJuICYAso29Q0RV9aI+REZIER4aRMfE5DIkV1meSiVccO27dA1Uhu+5gzEQ==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "cssom": "0.2.x", - "debug": "*", - "mkdirp": "0.3.x" - }, - "bin": { - "stylus": "bin/stylus" - }, - "engines": { - "node": "*" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, + "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -1247,10 +1343,11 @@ } }, "node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", "dev": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -1259,24 +1356,33 @@ "node": ">=14.17" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true, + "license": "MIT" + }, "node_modules/universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 10.0.0" } }, "node_modules/vite": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.9.tgz", - "integrity": "sha512-wVqMd5kp28QWGgfYPDfrj771VyHTJ4UDlCteLH7bJDGDEamaz5hV8IX6h1brSGgnnyf9lI2RnzXq/JmD0c2wwg==", + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.3.4.tgz", + "integrity": "sha512-Cw+7zL3ZG9/NZBB8C+8QbQZmR54GwqIz+WMI4b3JgdYJvX+ny9AjJXqkGQlDXSXRP9rP0B4tbciRMOVEKulVOA==", "dev": true, + "license": "MIT", "dependencies": { - "esbuild": "^0.19.3", - "postcss": "^8.4.32", - "rollup": "^4.2.0" + "esbuild": "^0.21.3", + "postcss": "^8.4.39", + "rollup": "^4.13.0" }, "bin": { "vite": "bin/vite.js" @@ -1324,10 +1430,11 @@ } }, "node_modules/vite-plugin-static-copy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-1.0.0.tgz", - "integrity": "sha512-kMlrB3WDtC5GzFedNIPkpjnOAr8M11PfWOiUaONrUZ3AqogTsOmIhTt6w7Fh311wl8pN81ld7sfuOEogFJ9N8A==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-1.0.6.tgz", + "integrity": "sha512-3uSvsMwDVFZRitqoWHj0t4137Kz7UynnJeq1EZlRW7e25h2068fyIZX4ORCCOAkfp1FklGxJNVJBkBOD+PZIew==", "dev": true, + "license": "MIT", "dependencies": { "chokidar": "^3.5.3", "fast-glob": "^3.2.11", diff --git a/web_lit/package.json b/web_lit/package.json index a81aaef..be92d3d 100644 --- a/web_lit/package.json +++ b/web_lit/package.json @@ -13,8 +13,9 @@ "lit": "^3.1.0" }, "devDependencies": { - "typescript": "^5.2.2", - "vite": "^5.0.8", + "@types/node": "^20.14.11", + "typescript": "^5.5.3", + "vite": "^5.3.4", "vite-plugin-static-copy": "^1.0.0" } } From 75dd6d31ab9fedce5a6a772975dc9fa7844d7b7f Mon Sep 17 00:00:00 2001 From: robert engels Date: Wed, 17 Jul 2024 15:41:02 -0500 Subject: [PATCH 22/52] ability to run unable vite dev server --- web_lit/vite.config.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web_lit/vite.config.ts b/web_lit/vite.config.ts index 5ebf90b..556c935 100644 --- a/web_lit/vite.config.ts +++ b/web_lit/vite.config.ts @@ -3,9 +3,11 @@ import { viteStaticCopy } from 'vite-plugin-static-copy'; const iconsPath = 'node_modules/@shoelace-style/shoelace/dist/assets/icons'; +console.log(process.cwd()); + // https://vitejs.dev/config/ -export default defineConfig({ - base: '/lit', +export default defineConfig((env) => { return { + base: env.command === 'build' ? '/lit/' : undefined, resolve: { alias: [ { @@ -35,4 +37,4 @@ export default defineConfig({ '/api': 'http://localhost:8080' } } -}); +}}); From 6d9aaa41a3df032dc8448d41c3768146655ddc2c Mon Sep 17 00:00:00 2001 From: robert engels Date: Wed, 17 Jul 2024 15:41:18 -0500 Subject: [PATCH 23/52] remove unnecessary scroll bars --- web_lit/index.html | 4 ++-- web_lit/src/index-page.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web_lit/index.html b/web_lit/index.html index 88aebb4..5faf9c5 100644 --- a/web_lit/index.html +++ b/web_lit/index.html @@ -12,8 +12,8 @@ - - + + diff --git a/web_lit/src/index-page.ts b/web_lit/src/index-page.ts index 31ab9f7..3a92ebc 100644 --- a/web_lit/src/index-page.ts +++ b/web_lit/src/index-page.ts @@ -25,8 +25,8 @@ export class IndexPage extends LitElement { render() { return html` -
-
+
+
Instruments

${this.instruments.map(b => html` @@ -34,8 +34,8 @@ export class IndexPage extends LitElement { this.maybeAddSymbol(b)}>${b} `)}
-
-
+
+
${repeat(this.books, (key: string) => key, (b: string) => html`
From e5117be99283bfce4da3de773622492d2323a959 Mon Sep 17 00:00:00 2001 From: robert engels Date: Wed, 17 Jul 2024 15:44:12 -0500 Subject: [PATCH 24/52] add screenshot for Lit UI --- README.md | 1 + doc/litss.png | Bin 0 -> 109058 bytes 2 files changed, 1 insertion(+) create mode 100644 doc/litss.png diff --git a/README.md b/README.md index 673521e..95291ad 100644 --- a/README.md +++ b/README.md @@ -83,3 +83,4 @@ localhost:8080/api/stats/SYMBOL ![client screen shot](doc/clientss.png) ![web screen shot](doc/webss.png) +![lit screen shot](doc/litss.png) diff --git a/doc/litss.png b/doc/litss.png new file mode 100644 index 0000000000000000000000000000000000000000..053adfb702bc10f3c02534acf784740f5dcce0ac GIT binary patch literal 109058 zcma&O1z1#H*EUW`C@CT(B?3xHOP92i64D}_LnEycN;e2dr@(*`(u{)A-3;A1bmzA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VqLM>h`n#d&Ry!pPzNluhg*O zlB;3C9r38PH9J2n$k_9(==5gZ{4TbcuFvy#$bZKk0T5sB5(F0Ui>DU82{Zq00a-C__44ooU3uR!BCm|zs%C@XESel=Du8O`0aH5_P?`kUpiNP>_X&qx5{__ z))vd{&~>Xf+W$0i_iS)fzy0<^60gy~j5pUSRnGk5*KNY_#k(Ia-&X?i-W`I_JT8C+(B8QQCP17SbMuoIW;+dyOq?|RPRMqx62p*yCXcg zKl^jqhbyO(AFQ}MJ3p&mukT{^xr}@M<$)#tO1|!e%q(J0QU+6jd0K0({XD>b%+8RB||x+0b3Z)*r1bHC{hRqHjW0< wXfTbYrqN6{S~iUq;iEO(XoFw~HwgZ*o5a3e<`^S)n*j(sUHx3vIVCg!0KDA`Bme*a literal 0 HcmV?d00001 From f750c03df0d8bfc4dfd30c02117517d15792f720 Mon Sep 17 00:00:00 2001 From: robert engels Date: Thu, 18 Jul 2024 12:02:24 -0500 Subject: [PATCH 25/52] remove synchronization in instrument lookup --- pkg/common/instrumentmap.go | 38 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/pkg/common/instrumentmap.go b/pkg/common/instrumentmap.go index 8fc3fcb..b77f085 100644 --- a/pkg/common/instrumentmap.go +++ b/pkg/common/instrumentmap.go @@ -12,40 +12,34 @@ import ( var IMap instrumentMap type instrumentMap struct { - sync.RWMutex id int64 - bySymbol map[string]Instrument - byID map[int64]Instrument + bySymbol sync.Map + byID sync.Map } func (im *instrumentMap) GetBySymbol(symbol string) Instrument { - im.RLock() - defer im.RUnlock() - i, ok := im.bySymbol[symbol] + i, ok := im.bySymbol.Load(symbol) if !ok { return nil } - return i + return i.(Instrument) } func (im *instrumentMap) GetByID(id int64) Instrument { - im.RLock() - defer im.RUnlock() - - i, ok := im.byID[id] + i, ok := im.byID.Load(id) if !ok { return nil } - return i + return i.(Instrument) } func (im *instrumentMap) AllSymbols() []string { - im.RLock() - defer im.RUnlock() - var symbols []string - for k, _ := range im.bySymbol { - symbols = append(symbols, k) + + fn := func (key any,value any) bool { + symbols = append(symbols, key.(string)) + return true } + im.bySymbol.Range(fn) return symbols } @@ -54,12 +48,10 @@ func (im *instrumentMap) AllSymbols() []string { func (im *instrumentMap) nextID() int64 { return atomic.AddInt64(&im.id, 1) } -func (im *instrumentMap) Put(instrument Instrument) { - im.Lock() - defer im.Unlock() - im.bySymbol[instrument.Symbol()] = instrument - im.byID[instrument.ID()] = instrument +func (im *instrumentMap) Put(instrument Instrument) { + im.bySymbol.Store(instrument.Symbol(),instrument) + im.byID.Store(instrument.ID(), instrument) } // load the instrument map from a file, see configs/instruments.txt for the format @@ -90,6 +82,4 @@ func (im *instrumentMap) Load(filepath string) error { } func init() { - IMap.bySymbol = make(map[string]Instrument) - IMap.byID = make(map[int64]Instrument) } From 7287b0b6b1e280369b539ad784c3e49693c6dec6 Mon Sep 17 00:00:00 2001 From: robert engels Date: Fri, 19 Jul 2024 17:46:41 -0500 Subject: [PATCH 26/52] use dynamic quickfix sessions --- cmd/algo/main.go | 5 ++++- cmd/client/main.go | 5 +++-- cmd/exchange/main.go | 19 +++++++++++++------ cmd/marketmaker/main.go | 10 +++++++++- cmd/playback/main.go | 2 ++ configs/qf_algo_settings | 15 --------------- configs/qf_client_settings | 15 --------------- configs/qf_connector_settings | 4 +--- configs/qf_got_settings | 21 ++------------------- configs/qf_mm1_settings | 15 --------------- configs/qf_mm2_settings | 15 --------------- configs/qf_mm3_settings | 15 --------------- configs/qf_mm4_settings | 15 --------------- configs/qf_playback_settings | 15 --------------- internal/exchange/qfixapp.go | 7 +++++-- pkg/connector/qfix/connector.go | 31 ++++++++++++++++++++++++------- pkg/connector/qfix/qfixapp.go | 4 +++- 17 files changed, 66 insertions(+), 147 deletions(-) delete mode 100644 configs/qf_algo_settings delete mode 100644 configs/qf_client_settings delete mode 100644 configs/qf_mm1_settings delete mode 100644 configs/qf_mm2_settings delete mode 100644 configs/qf_mm3_settings delete mode 100644 configs/qf_mm4_settings delete mode 100644 configs/qf_playback_settings diff --git a/cmd/algo/main.go b/cmd/algo/main.go index e964e63..9300041 100644 --- a/cmd/algo/main.go +++ b/cmd/algo/main.go @@ -3,10 +3,11 @@ package main import ( "flag" "fmt" - "github.com/robaho/fixed" "log" "time" + "github.com/robaho/fixed" + . "github.com/robaho/go-trader/pkg/common" "github.com/robaho/go-trader/pkg/connector" ) @@ -114,6 +115,7 @@ func main() { fix := flag.String("fix", "configs/qf_algo_settings", "set the fix session file") props := flag.String("props", "configs/got_settings", "set exchange properties file") offset := flag.Float64("offset", 1.0, "price offset for entry exit") + senderCompID := flag.String("id", "ALGO", "set the SenderCompID") flag.Parse() @@ -125,6 +127,7 @@ func main() { panic(err) } p.SetString("fix", *fix) + p.SetString("senderCompID",*senderCompID) exchange = connector.NewConnector(&callback, p, nil) diff --git a/cmd/client/main.go b/cmd/client/main.go index 75dfb5f..1141cb7 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -3,11 +3,12 @@ package main import ( "flag" "fmt" - "github.com/robaho/fixed" "log" "strings" "sync" + "github.com/robaho/fixed" + . "github.com/robaho/go-trader/pkg/common" "github.com/robaho/go-trader/pkg/connector" "github.com/robaho/gocui" @@ -381,7 +382,7 @@ func printCommand(v *gocui.View) { func main() { var callback = MyCallback{} - fix := flag.String("fix", "configs/qf_client_settings", "set the fix session file") + fix := flag.String("fix", "configs/qf_connector_settings", "set the fix session file") props := flag.String("props", "configs/got_settings", "set exchange properties file") flag.Parse() diff --git a/cmd/exchange/main.go b/cmd/exchange/main.go index facbd07..387dc43 100644 --- a/cmd/exchange/main.go +++ b/cmd/exchange/main.go @@ -4,9 +4,6 @@ import ( "bufio" "flag" "fmt" - "github.com/robaho/go-trader/pkg/protocol" - "google.golang.org/grpc" - "google.golang.org/grpc/reflection" "log" "net" "os" @@ -15,12 +12,16 @@ import ( "sync" "time" + "github.com/robaho/go-trader/pkg/protocol" + "google.golang.org/grpc" + "google.golang.org/grpc/reflection" + "github.com/quickfixgo/quickfix" "github.com/robaho/go-trader/internal/exchange" "github.com/robaho/go-trader/pkg/common" -) -import _ "net/http/pprof" + _ "net/http/pprof" +) func main() { @@ -32,6 +33,9 @@ func main() { flag.Parse() + runtime.SetBlockProfileRate(1000) + runtime.SetMutexProfileFraction(1000) + p, err := common.NewProperties(*props) if err != nil { fmt.Println("unable to exchange properties", err) @@ -68,7 +72,10 @@ func main() { ex.Start() - _ = acceptor.Start() + err = acceptor.Start() + if err!=nil { + panic(err) + } defer acceptor.Stop() // start grpc protocol diff --git a/cmd/marketmaker/main.go b/cmd/marketmaker/main.go index 18850a3..5fc3604 100644 --- a/cmd/marketmaker/main.go +++ b/cmd/marketmaker/main.go @@ -44,12 +44,14 @@ func main() { var callback = MyCallback{make(chan bool, 128), ""} symbol := flag.String("symbol", "IBM", "set the symbol") - fix := flag.String("fix", "configs/qf_mm1_settings", "set the fix session file") + fix := flag.String("fix", "configs/qf_connector_settings", "set the fix session file") props := flag.String("props", "configs/got_settings", "set exchange properties file") delay := flag.Int("delay", 0, "set the delay in ms after each quote, 0 to disable") proto := flag.String("proto", "", "override protocol, grpc or fix") duration := flag.Int("duration", 0, "run for N seconds, 0 = forever") cpuprofile := flag.String("cpuprofile", "", "write cpu profile to file") + senderCompID := flag.String("id", "MM", "set the SenderCompID") + symbolAsCompID := flag.Bool("sid", false, "use symbol as SenderCompID") flag.Parse() @@ -73,6 +75,12 @@ func main() { } p.SetString("fix", *fix) + if *symbolAsCompID { + p.SetString("senderCompID", *symbol) + } else { + p.SetString("senderCompID", *senderCompID) + } + var exchange = connector.NewConnector(&callback, p, nil) exchange.Connect() diff --git a/cmd/playback/main.go b/cmd/playback/main.go index ad92eb3..345fdcf 100644 --- a/cmd/playback/main.go +++ b/cmd/playback/main.go @@ -39,6 +39,7 @@ func main() { props := flag.String("props", "configs/got_settings", "set exchange properties file") speed := flag.Float64("speed", 1.0, "set the playback speed") playback := flag.String("file", "playback.txt", "set the playback file") + senderCompID := flag.String("id", "PLAYBACK", "set the SenderCompID") flag.Parse() @@ -47,6 +48,7 @@ func main() { panic(err) } p.SetString("fix", *fix) + p.SetString("senderCompID",*senderCompID) var exchange = connector.NewConnector(&callback, p, nil) diff --git a/configs/qf_algo_settings b/configs/qf_algo_settings deleted file mode 100644 index 5ef7e92..0000000 --- a/configs/qf_algo_settings +++ /dev/null @@ -1,15 +0,0 @@ -# allow anyone to connect -[DEFAULT] -ReconnectInterval=60 -TargetCompID=GOX -SocketConnectPort=5001 -SocketConnectHost=localhost -UseDataDictionary=false -BeginString=FIX.4.4 -HeartBtInt=30 -ResetOnDisconnect=Y -RestOnLogout=Y - -[SESSION] -SenderCompID=ALGO -ConnectionType=initiator diff --git a/configs/qf_client_settings b/configs/qf_client_settings deleted file mode 100644 index 99f7031..0000000 --- a/configs/qf_client_settings +++ /dev/null @@ -1,15 +0,0 @@ -# allow anyone to connect -[DEFAULT] -ReconnectInterval=60 -TargetCompID=GOX -SocketConnectPort=5001 -SocketConnectHost=localhost -UseDataDictionary=false -BeginString=FIX.4.4 -HeartBtInt=30 -ResetOnDisconnect=Y -RestOnLogout=Y - -[SESSION] -SenderCompID=CLIENT -ConnectionType=initiator diff --git a/configs/qf_connector_settings b/configs/qf_connector_settings index 99f7031..7d6c4c6 100644 --- a/configs/qf_connector_settings +++ b/configs/qf_connector_settings @@ -10,6 +10,4 @@ HeartBtInt=30 ResetOnDisconnect=Y RestOnLogout=Y -[SESSION] -SenderCompID=CLIENT -ConnectionType=initiator +# sessions are dynamically added with a default SenderCompID=CLIENT \ No newline at end of file diff --git a/configs/qf_got_settings b/configs/qf_got_settings index 25158dd..950a485 100644 --- a/configs/qf_got_settings +++ b/configs/qf_got_settings @@ -10,24 +10,7 @@ ResetOnLogout=Y ResetOnDisconnect=Y PersistMessages=N Logging=N +DynamicSessions=Y [SESSION] -TargetCompID=MM1 - -[SESSION] -TargetCompID=MM2 - -[SESSION] -TargetCompID=MM3 - -[SESSION] -TargetCompID=MM4 - -[SESSION] -TargetCompID=CLIENT - -[SESSION] -TargetCompID=PLAYBACK - -[SESSION] -TargetCompID=ALGO +TargetCompID=* diff --git a/configs/qf_mm1_settings b/configs/qf_mm1_settings deleted file mode 100644 index d37f0dd..0000000 --- a/configs/qf_mm1_settings +++ /dev/null @@ -1,15 +0,0 @@ -# allow anyone to connect -[DEFAULT] -ReconnectInterval=60 -TargetCompID=GOX -SocketConnectPort=5001 -SocketConnectHost=localhost -UseDataDictionary=false -BeginString=FIX.4.4 -HeartBtInt=30 -ResetOnDisconnect=Y -RestOnLogout=Y - -[SESSION] -SenderCompID=MM1 -ConnectionType=initiator diff --git a/configs/qf_mm2_settings b/configs/qf_mm2_settings deleted file mode 100644 index 4ce3f1e..0000000 --- a/configs/qf_mm2_settings +++ /dev/null @@ -1,15 +0,0 @@ -# allow anyone to connect -[DEFAULT] -ReconnectInterval=60 -TargetCompID=GOX -SocketConnectPort=5001 -SocketConnectHost=localhost -UseDataDictionary=false -BeginString=FIX.4.4 -HeartBtInt=30 -ResetOnDisconnect=Y -RestOnLogout=Y - -[SESSION] -SenderCompID=MM2 -ConnectionType=initiator diff --git a/configs/qf_mm3_settings b/configs/qf_mm3_settings deleted file mode 100644 index 01d877d..0000000 --- a/configs/qf_mm3_settings +++ /dev/null @@ -1,15 +0,0 @@ -# allow anyone to connect -[DEFAULT] -ReconnectInterval=60 -TargetCompID=GOX -SocketConnectPort=5001 -SocketConnectHost=localhost -UseDataDictionary=false -BeginString=FIX.4.4 -HeartBtInt=30 -ResetOnDisconnect=Y -RestOnLogout=Y - -[SESSION] -SenderCompID=MM3 -ConnectionType=initiator diff --git a/configs/qf_mm4_settings b/configs/qf_mm4_settings deleted file mode 100644 index 9cde16d..0000000 --- a/configs/qf_mm4_settings +++ /dev/null @@ -1,15 +0,0 @@ -# allow anyone to connect -[DEFAULT] -ReconnectInterval=60 -TargetCompID=GOX -SocketConnectPort=5001 -SocketConnectHost=localhost -UseDataDictionary=false -BeginString=FIX.4.4 -HeartBtInt=30 -ResetOnDisconnect=Y -RestOnLogout=Y - -[SESSION] -SenderCompID=MM4 -ConnectionType=initiator diff --git a/configs/qf_playback_settings b/configs/qf_playback_settings deleted file mode 100644 index 4782541..0000000 --- a/configs/qf_playback_settings +++ /dev/null @@ -1,15 +0,0 @@ -# allow anyone to connect -[DEFAULT] -ReconnectInterval=60 -TargetCompID=GOX -SocketConnectPort=5001 -SocketConnectHost=localhost -UseDataDictionary=false -BeginString=FIX.4.4 -HeartBtInt=30 -ResetOnDisconnect=Y -RestOnLogout=Y - -[SESSION] -SenderCompID=PLAYBACK -ConnectionType=initiator diff --git a/internal/exchange/qfixapp.go b/internal/exchange/qfixapp.go index 10e7202..351036f 100644 --- a/internal/exchange/qfixapp.go +++ b/internal/exchange/qfixapp.go @@ -2,11 +2,12 @@ package exchange import ( "fmt" + "strconv" + "sync" + "github.com/quickfixgo/fix44/securitydefinition" "github.com/quickfixgo/fix44/securitylistrequest" . "github.com/robaho/fixed" - "strconv" - "sync" "github.com/quickfixgo/enum" "github.com/quickfixgo/field" @@ -61,6 +62,7 @@ func (app *myApplication) OnLogout(sessionID quickfix.SessionID) { } func (app *myApplication) ToAdmin(message *quickfix.Message, sessionID quickfix.SessionID) { + // fmt.Println("sending admin, ", message) } func (app *myApplication) ToApp(message *quickfix.Message, sessionID quickfix.SessionID) error { @@ -68,6 +70,7 @@ func (app *myApplication) ToApp(message *quickfix.Message, sessionID quickfix.Se } func (app *myApplication) FromAdmin(message *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError { + // fmt.Println("received admin, ", message) return nil } diff --git a/pkg/connector/qfix/connector.go b/pkg/connector/qfix/connector.go index bca8fb9..c570c23 100644 --- a/pkg/connector/qfix/connector.go +++ b/pkg/connector/qfix/connector.go @@ -1,9 +1,7 @@ package qfix import ( - "github.com/quickfixgo/fix44/securitydefinitionrequest" - "github.com/quickfixgo/fix44/securitylistrequest" - . "github.com/robaho/fixed" + "fmt" "io" "os" "strconv" @@ -11,6 +9,10 @@ import ( "sync/atomic" "time" + "github.com/quickfixgo/fix44/securitydefinitionrequest" + "github.com/quickfixgo/fix44/securitylistrequest" + . "github.com/robaho/fixed" + "github.com/quickfixgo/enum" "github.com/quickfixgo/field" "github.com/quickfixgo/fix44/massquote" @@ -36,6 +38,7 @@ type qfixConnector struct { settings string log io.Writer secReqId int64 + senderCompID string } func (c *qfixConnector) IsConnected() bool { @@ -52,8 +55,8 @@ func (c *qfixConnector) Connect() error { panic(err) } appSettings, err := quickfix.ParseSettings(cfg) - if err != nil { - panic(err) + if err != nil && (c.senderCompID=="" && err.Error()=="no sessions declared") { + panic(fmt.Errorf("no sessions declared and compID not set")) } storeFactory := quickfix.NewMemoryStoreFactory() //logFactory, _ := quickfix.NewFileLogFactory(appSettings) @@ -65,13 +68,26 @@ func (c *qfixConnector) Connect() error { } else { logFactory = quickfix.NewNullLogFactory() } + + if c.senderCompID!="" { + if len(appSettings.SessionSettings())>0 { + panic("cannot set compID and also specify session configuration") + } + // override sender comp ID + ss := quickfix.SessionSettings{} + ss.Set("SenderCompID",c.senderCompID); + ss.Set("ConnectionType","initiator"); + c.sessionID, _ = appSettings.AddSession(&ss) + } else { + c.sessionID = getSession(appSettings.SessionSettings()) + } + initiator, err := quickfix.NewInitiator(newApplication(c), storeFactory, appSettings, logFactory) if err != nil { panic(err) } c.initiator = initiator - c.sessionID = getSession(appSettings.SessionSettings()) err = initiator.Start() if err != nil { @@ -255,7 +271,8 @@ func NewConnector(callback ConnectorCallback, props Properties, logOutput io.Wri } filename := props.GetString("fix", "") - c := &qfixConnector{settings: filename, log: logOutput} + senderCompID := props.GetString("senderCompID", "") + c := &qfixConnector{settings: filename, log: logOutput, senderCompID: senderCompID} c.callback = callback return c diff --git a/pkg/connector/qfix/qfixapp.go b/pkg/connector/qfix/qfixapp.go index e46d9f2..555a31d 100644 --- a/pkg/connector/qfix/qfixapp.go +++ b/pkg/connector/qfix/qfixapp.go @@ -2,9 +2,10 @@ package qfix import ( "fmt" + "strings" + "github.com/quickfixgo/fix44/securitydefinition" "github.com/robaho/fixed" - "strings" "github.com/quickfixgo/enum" "github.com/quickfixgo/fix44/executionreport" @@ -51,6 +52,7 @@ func (app *myApplication) ToApp(message *quickfix.Message, sessionID quickfix.Se } func (app *myApplication) FromAdmin(message *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError { + // fmt.Fprintln(app.c.log, "received admin",message); return nil } From 47a13cd03ea4f0b8c690e5413c69b5267b060fc9 Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 11:35:28 -0500 Subject: [PATCH 27/52] upgrade quickfixgo --- go.mod | 9 +++++---- go.sum | 10 ++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index af535d9..caeaa95 100644 --- a/go.mod +++ b/go.mod @@ -10,11 +10,11 @@ require ( github.com/quickfixgo/enum v0.1.0 github.com/quickfixgo/field v0.1.0 github.com/quickfixgo/fix44 v0.1.0 - github.com/quickfixgo/quickfix v0.9.0 + github.com/quickfixgo/quickfix v0.9.4 github.com/robaho/fixed v0.0.0-20230815003229-929de1ea03c3 github.com/robaho/gocui v0.3.1 - github.com/shopspring/decimal v1.3.1 - golang.org/x/net v0.19.0 + github.com/shopspring/decimal v1.4.0 + golang.org/x/net v0.24.0 google.golang.org/grpc v1.60.0 ) @@ -23,8 +23,9 @@ require ( github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/mattn/go-runewidth v0.0.9 // indirect github.com/nsf/termbox-go v1.1.1 // indirect + github.com/pires/go-proxyproto v0.7.0 // indirect github.com/quickfixgo/tag v0.1.0 // indirect - golang.org/x/sys v0.15.0 // indirect + golang.org/x/sys v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect google.golang.org/protobuf v1.31.0 // indirect diff --git a/go.sum b/go.sum index 26c2c81..1cdf6bc 100644 --- a/go.sum +++ b/go.sum @@ -20,6 +20,8 @@ github.com/mattn/go-sqlite3 v1.14.18 h1:JL0eqdCOq6DJVNPSvArO/bIV9/P7fbGrV00LZHc+ github.com/mattn/go-sqlite3 v1.14.18/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= github.com/nsf/termbox-go v1.1.1 h1:nksUPLCb73Q++DwbYUBEglYBRPZyoXJdrj5L+TkjyZY= github.com/nsf/termbox-go v1.1.1/go.mod h1:T0cTdVuOwf7pHQNtfhnEbzHbcNyCEcVU4YPpouCbVxo= +github.com/pires/go-proxyproto v0.7.0 h1:IukmRewDQFWC7kfnb66CSomk2q/seBuilHBYFwyq0Hs= +github.com/pires/go-proxyproto v0.7.0/go.mod h1:Vz/1JPY/OACxWGQNIRY2BeyDmpoaWmEP40O9LbuiFR4= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -32,6 +34,8 @@ github.com/quickfixgo/fix44 v0.1.0 h1:g/rTl6mXDlG7iIMbY7zaPbHcj9N/B+tteOZ01yGzeS github.com/quickfixgo/fix44 v0.1.0/go.mod h1:d6Ia02Eq/JYgKCn/2V9FHxguAl1Alp/yu/xVpry82dA= github.com/quickfixgo/quickfix v0.9.0 h1:WshR3GUSxR69ZrSQfppKs2zZ12dTYtU3JUgQg+PAOdA= github.com/quickfixgo/quickfix v0.9.0/go.mod h1:t5Z881dOZ2Dz5vM6KIbMCx3YpAiFPFf/iCLCSn91Qqo= +github.com/quickfixgo/quickfix v0.9.4 h1:wwZKGk09wjuRDkqid6dYW7DJrSb7UcaxIvm44orx55I= +github.com/quickfixgo/quickfix v0.9.4/go.mod h1:Epcqgr7ARlUYUsl/bkEXUcbWoCCB048u6zBXLTC6F88= github.com/quickfixgo/tag v0.1.0 h1:R2A1Zf7CBE903+mOQlmTlfTmNZQz/yh7HunMbgcsqsA= github.com/quickfixgo/tag v0.1.0/go.mod h1:l/drB1eO3PwN9JQTDC9Vt2EqOcaXk3kGJ+eeCQljvAI= github.com/robaho/fixed v0.0.0-20230815003229-929de1ea03c3 h1:z2AXOxvJ7rXsbyv3s9NIZBKAJgEtSE6/lR/TWafkm0w= @@ -42,14 +46,20 @@ github.com/robaho/gocui v0.3.1 h1:8CfmzgaK/Cgx3tMEsYDyvxGIkHZ6pYn5m826YG0oUeo= github.com/robaho/gocui v0.3.1/go.mod h1:pGoMrUaM3DO8ORottR2+ffXjklvRVW0pUnXF77AK6Ow= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= +github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= +golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= From 49373ada18ee72af790a0ca120e088aea2580a96 Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 11:37:38 -0500 Subject: [PATCH 28/52] allow single market maker process to quote multiple symbols --- cmd/marketmaker/main.go | 67 ++++++++++++++++++++------ pkg/common/properties.go | 10 +++- pkg/connector/grpc/connector.go | 12 ++--- pkg/connector/marketdata/marketdata.go | 20 ++++---- pkg/connector/qfix/connector.go | 3 +- 5 files changed, 76 insertions(+), 36 deletions(-) diff --git a/cmd/marketmaker/main.go b/cmd/marketmaker/main.go index 5fc3604..d6cd006 100644 --- a/cmd/marketmaker/main.go +++ b/cmd/marketmaker/main.go @@ -7,6 +7,8 @@ import ( "math/rand" "os" "runtime/pprof" + "strings" + "sync" "sync/atomic" "time" @@ -41,9 +43,9 @@ func (*MyCallback) OnTrade(trade *Trade) { } func main() { - var callback = MyCallback{make(chan bool, 128), ""} symbol := flag.String("symbol", "IBM", "set the symbol") + symbols := flag.String("symbols", "", "set the comma delimited list of symbols") fix := flag.String("fix", "configs/qf_connector_settings", "set the fix session file") props := flag.String("props", "configs/got_settings", "set exchange properties file") delay := flag.Int("delay", 0, "set the delay in ms after each quote, 0 to disable") @@ -55,6 +57,20 @@ func main() { flag.Parse() + quotedSymbols := make([]string,0); + + if(*symbols!="") { + quotedSymbols = append(quotedSymbols,strings.Split(*symbols,",")...) + } else if(*symbol!="") { + quotedSymbols = append(quotedSymbols,*symbol) + } + + fmt.Println("quoted symbols: ",strings.Join(quotedSymbols,",")) + + if len(quotedSymbols)==0 { + panic("most provide either symbols or symbol") + } + if *cpuprofile != "" { f, err := os.Create(*cpuprofile) if err != nil { @@ -64,8 +80,6 @@ func main() { defer pprof.StopCPUProfile() } - callback.symbol = *symbol - p, err := NewProperties(*props) if err != nil { panic(err) @@ -74,13 +88,33 @@ func main() { p.SetString("protocol", *proto) } p.SetString("fix", *fix) + p.SetString("senderCompID", *senderCompID) - if *symbolAsCompID { - p.SetString("senderCompID", *symbol) - } else { - p.SetString("senderCompID", *senderCompID) + if len(quotedSymbols)>0 { + // have to use symbol as senderCompID if quoting multiple symbols since multiple connections are used + *symbolAsCompID=true; } + var wg sync.WaitGroup + + for _,symbol := range quotedSymbols { + wg.Add(1) + go quoteSymbol(symbol,p,*duration,*delay,*symbolAsCompID, &wg) + } + wg.Wait() +} + +func quoteSymbol(symbol string, p Properties,duration int, delay int,symbolAsCompID bool,wg *sync.WaitGroup) { + defer wg.Done() + p = p.Clone() + + if symbolAsCompID { + fmt.Println("setting senderCompID to",symbol) + p.SetString("senderCompID", symbol) + } + + var callback = MyCallback{make(chan bool, 128), symbol} + var exchange = connector.NewConnector(&callback, p, nil) exchange.Connect() @@ -88,20 +122,20 @@ func main() { panic("exchange is not connected") } - err = exchange.DownloadInstruments() + err := exchange.DownloadInstruments() if err != nil { panic(err) } - instrument := IMap.GetBySymbol(callback.symbol) + instrument := IMap.GetBySymbol(symbol) if instrument == nil { - log.Fatal("unknown symbol", callback.symbol) + log.Fatal("unknown symbol", symbol) } var updates uint64 start := time.Now() - end := start.Add(time.Duration(int64(*duration)) * time.Second) + end := start.Add(time.Duration(int64(duration)) * time.Second) fmt.Println("sending quotes on", instrument.Symbol(), "...") @@ -117,7 +151,7 @@ func main() { h := gohistogram.NewHistogram(50) - for *duration == 0 || time.Now().Before(end) { + for duration == 0 || time.Now().Before(end) { var delta = 1 var r = r.Intn(10) if r <= 2 { @@ -152,13 +186,14 @@ func main() { } <-callback.ch // drain channel - for len(callback.ch) > 0 { - <-callback.ch + if len(callback.ch) > 0 { + for range callback.ch { + } } } h.Add(float64(time.Since(now).Nanoseconds())) - if *delay != 0 { - time.Sleep(time.Duration(int64(*delay)) * time.Millisecond) + if delay != 0 { + time.Sleep(time.Duration(int64(delay)) * time.Millisecond) } atomic.AddUint64(&updates, 1) if time.Since(start).Seconds() > 10 { diff --git a/pkg/common/properties.go b/pkg/common/properties.go index 21d06c6..c6a977e 100644 --- a/pkg/common/properties.go +++ b/pkg/common/properties.go @@ -3,6 +3,7 @@ package common import ( "bufio" "io" + "maps" "os" "strings" ) @@ -12,13 +13,14 @@ import ( type Properties interface { GetString(key string, def string) string SetString(key string, value string) + Clone() Properties } type properties struct { props map[string]string } -func (p *properties) GetString(key string, def string) string { +func (p properties) GetString(key string, def string) string { key = strings.TrimSpace(key) v, ok := p.props[key] if !ok { @@ -27,11 +29,15 @@ func (p *properties) GetString(key string, def string) string { return v } -func (p *properties) SetString(key string, value string) { +func (p properties) SetString(key string, value string) { key = strings.TrimSpace(key) p.props[key] = value } +func (p properties) Clone() Properties { + return properties{props: maps.Clone(p.props)} +} + func NewProperties(file string) (Properties, error) { inputFile, err := os.Open(file) if err != nil { diff --git a/pkg/connector/grpc/connector.go b/pkg/connector/grpc/connector.go index 4bf4a68..39b6d39 100644 --- a/pkg/connector/grpc/connector.go +++ b/pkg/connector/grpc/connector.go @@ -2,15 +2,16 @@ package grpc import ( "context" - . "github.com/robaho/fixed" - . "github.com/robaho/go-trader/pkg/common" - "github.com/robaho/go-trader/pkg/protocol" - "google.golang.org/grpc" "io" "log" "os" "strings" "sync" + + . "github.com/robaho/fixed" + . "github.com/robaho/go-trader/pkg/common" + "github.com/robaho/go-trader/pkg/protocol" + "google.golang.org/grpc" ) type grpcConnector struct { @@ -350,8 +351,7 @@ func NewConnector(callback ConnectorCallback, props Properties, logOutput io.Wri if logOutput == nil { logOutput = os.Stdout } - c := &grpcConnector{props: props, log: logOutput} - c.callback = callback + c := &grpcConnector{props: props, log: logOutput, callback: callback} return c } diff --git a/pkg/connector/marketdata/marketdata.go b/pkg/connector/marketdata/marketdata.go index 209c0ba..f1cb540 100644 --- a/pkg/connector/marketdata/marketdata.go +++ b/pkg/connector/marketdata/marketdata.go @@ -19,13 +19,15 @@ type marketDataReceiver struct { c ExchangeConnector callback ConnectorCallback log io.Writer + lastSequence map[Instrument]uint64 + seqLock sync.Mutex } // StartMarketDataReceiver starts the multicast marketdata processor func StartMarketDataReceiver(c ExchangeConnector, callback ConnectorCallback, props Properties, logOutput io.Writer) { // read settings and create socket - md := marketDataReceiver{c: c, callback: callback, log: logOutput} + md := marketDataReceiver{c: c, callback: callback, log: logOutput, lastSequence: make(map[Instrument]uint64)} saddr := props.GetString("multicast_addr", "") if saddr == "" { @@ -62,12 +64,13 @@ func StartMarketDataReceiver(c ExchangeConnector, callback ConnectorCallback, pr var packetNumber uint64 = 0 l, err := net.ListenMulticastUDP("udp", _intf, addr) if err != nil { + fmt.Println("unable to open multicast socket") panic(err) } log.Println("listening for market data on", l.LocalAddr()) l.SetReadBuffer(16 * 1024 * 1024) + b := make([]byte, protocol.MaxMsgSize) for { - b := make([]byte, protocol.MaxMsgSize) n, _, err := l.ReadFromUDP(b) if err != nil { log.Fatal("ReadFromUDP failed:", err) @@ -134,7 +137,7 @@ func (c *marketDataReceiver) packetReceived(expected uint64, buf []byte) uint64 if pn < expected { // server restart, reset the packet numbers expected = 0 - lastSequence = make(map[Instrument]uint64) + c.lastSequence = make(map[Instrument]uint64) } if expected != 0 && pn != expected { @@ -148,12 +151,9 @@ func (c *marketDataReceiver) packetReceived(expected uint64, buf []byte) uint64 return pn + 1 } -var lastSequence = make(map[Instrument]uint64) -var seqLock = sync.Mutex{} - func (c *marketDataReceiver) processPacket(packet []byte) { - seqLock.Lock() // need locking because the main md go routine and the replay go routine call through here - defer seqLock.Unlock() + c.seqLock.Lock() // need locking because the main md go routine and the replay go routine call through here + defer c.seqLock.Unlock() packet = packet[8:] // skip over packet number @@ -162,10 +162,10 @@ func (c *marketDataReceiver) processPacket(packet []byte) { for buf.Len() > 0 { book, trades := protocol.DecodeMarketEvent(buf) if book != nil { - last, ok := lastSequence[book.Instrument] + last, ok := c.lastSequence[book.Instrument] if (ok && book.Sequence > last) || !ok { c.callback.OnBook(book) - lastSequence[book.Instrument] = book.Sequence + c.lastSequence[book.Instrument] = book.Sequence } } for _, trade := range trades { diff --git a/pkg/connector/qfix/connector.go b/pkg/connector/qfix/connector.go index c570c23..860c3b3 100644 --- a/pkg/connector/qfix/connector.go +++ b/pkg/connector/qfix/connector.go @@ -272,8 +272,7 @@ func NewConnector(callback ConnectorCallback, props Properties, logOutput io.Wri filename := props.GetString("fix", "") senderCompID := props.GetString("senderCompID", "") - c := &qfixConnector{settings: filename, log: logOutput, senderCompID: senderCompID} - c.callback = callback + c := &qfixConnector{settings: filename, log: logOutput, senderCompID: senderCompID, callback: callback} return c } From 816c6635d33f0395473fd198a6a486e0b394846c Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 11:48:45 -0500 Subject: [PATCH 29/52] set logOutput to stdout if nil --- pkg/connector/connector.go | 8 +++++++- pkg/connector/grpc/connector.go | 5 ----- pkg/connector/qfix/connector.go | 4 ---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/pkg/connector/connector.go b/pkg/connector/connector.go index 15bedf3..72ebc9e 100644 --- a/pkg/connector/connector.go +++ b/pkg/connector/connector.go @@ -1,16 +1,22 @@ package connector import ( + "io" + "os" + "github.com/robaho/go-trader/pkg/common" "github.com/robaho/go-trader/pkg/connector/grpc" "github.com/robaho/go-trader/pkg/connector/marketdata" "github.com/robaho/go-trader/pkg/connector/qfix" - "io" ) func NewConnector(callback common.ConnectorCallback, props common.Properties, logOutput io.Writer) common.ExchangeConnector { var c common.ExchangeConnector + if logOutput==nil { + logOutput = os.Stdout + } + if "grpc" == props.GetString("protocol", "fix") { c = grpc.NewConnector(callback, props, logOutput) } else { diff --git a/pkg/connector/grpc/connector.go b/pkg/connector/grpc/connector.go index 39b6d39..2e7e077 100644 --- a/pkg/connector/grpc/connector.go +++ b/pkg/connector/grpc/connector.go @@ -4,7 +4,6 @@ import ( "context" "io" "log" - "os" "strings" "sync" @@ -348,10 +347,6 @@ func (c *grpcConnector) handleExecutionReport(rpt *protocol.ExecutionReport) { } func NewConnector(callback ConnectorCallback, props Properties, logOutput io.Writer) ExchangeConnector { - if logOutput == nil { - logOutput = os.Stdout - } c := &grpcConnector{props: props, log: logOutput, callback: callback} - return c } diff --git a/pkg/connector/qfix/connector.go b/pkg/connector/qfix/connector.go index 860c3b3..03f9557 100644 --- a/pkg/connector/qfix/connector.go +++ b/pkg/connector/qfix/connector.go @@ -266,10 +266,6 @@ func (c *qfixConnector) GetOrder(id OrderID) *Order { } func NewConnector(callback ConnectorCallback, props Properties, logOutput io.Writer) ExchangeConnector { - if logOutput == nil { - logOutput = os.Stdout - } - filename := props.GetString("fix", "") senderCompID := props.GetString("senderCompID", "") c := &qfixConnector{settings: filename, log: logOutput, senderCompID: senderCompID, callback: callback} From 00dfe8f726945527bdfa93f1b71227c8a1b05e58 Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 12:23:15 -0500 Subject: [PATCH 30/52] single connector marketdata processor per exchange --- pkg/connector/marketdata/marketdata.go | 37 +++++++++++++++++++++----- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/pkg/connector/marketdata/marketdata.go b/pkg/connector/marketdata/marketdata.go index f1cb540..58342ec 100644 --- a/pkg/connector/marketdata/marketdata.go +++ b/pkg/connector/marketdata/marketdata.go @@ -8,6 +8,7 @@ import ( "log" "net" "sync" + "sync/atomic" . "github.com/robaho/go-trader/pkg/common" "github.com/robaho/go-trader/pkg/protocol" @@ -17,23 +18,40 @@ var replayRequests = make(chan protocol.ReplayRequest, 1000) type marketDataReceiver struct { c ExchangeConnector - callback ConnectorCallback + callbacks atomic.Value log io.Writer lastSequence map[Instrument]uint64 seqLock sync.Mutex } +var receivers = make(map[string]*marketDataReceiver) +var mdLock = sync.Mutex{} + // StartMarketDataReceiver starts the multicast marketdata processor func StartMarketDataReceiver(c ExchangeConnector, callback ConnectorCallback, props Properties, logOutput io.Writer) { - // read settings and create socket + mdLock.Lock() + defer mdLock.Unlock() - md := marketDataReceiver{c: c, callback: callback, log: logOutput, lastSequence: make(map[Instrument]uint64)} + // read settings and create socket saddr := props.GetString("multicast_addr", "") if saddr == "" { panic("unable to read multicast addr") } + existing,ok := receivers[saddr] + if ok { + fmt.Fprintln(logOutput,"adding connector to existing md connector",saddr) + // existing receiver for this address, so only add our callback + callbacks := existing.callbacks.Load().([]ConnectorCallback) + callbacks = append(callbacks, callback) + existing.callbacks.Store(callbacks) + return + } + + md := marketDataReceiver{c: c, log: logOutput, lastSequence: make(map[Instrument]uint64)} + md.callbacks.Store([]ConnectorCallback{callback}) + intf := props.GetString("multicast_intf", "lo0") if intf == "" { panic("unable to read multicast interface") @@ -60,6 +78,8 @@ func StartMarketDataReceiver(c ExchangeConnector, callback ConnectorCallback, pr panic(err) } + receivers[saddr]=&md + go func() { var packetNumber uint64 = 0 l, err := net.ListenMulticastUDP("udp", _intf, addr) @@ -159,18 +179,23 @@ func (c *marketDataReceiver) processPacket(packet []byte) { buf := bytes.NewBuffer(packet) + callbacks := c.callbacks.Load().([]ConnectorCallback) + for buf.Len() > 0 { book, trades := protocol.DecodeMarketEvent(buf) if book != nil { last, ok := c.lastSequence[book.Instrument] if (ok && book.Sequence > last) || !ok { - c.callback.OnBook(book) + for _,callback := range callbacks { + callback.OnBook(book) + } c.lastSequence[book.Instrument] = book.Sequence } } for _, trade := range trades { - c.callback.OnTrade(&trade) + for _,callback := range callbacks { + callback.OnTrade(&trade) + } } } - } From 7ef7019a3aa589621b591abf5f576dc2e3637dfc Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 13:57:35 -0500 Subject: [PATCH 31/52] ability to set the market data buffer size --- cmd/marketmaker/main.go | 4 ++++ pkg/common/properties.go | 15 +++++++++++++++ pkg/connector/marketdata/marketdata.go | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/cmd/marketmaker/main.go b/cmd/marketmaker/main.go index d6cd006..3b454fa 100644 --- a/cmd/marketmaker/main.go +++ b/cmd/marketmaker/main.go @@ -54,6 +54,7 @@ func main() { cpuprofile := flag.String("cpuprofile", "", "write cpu profile to file") senderCompID := flag.String("id", "MM", "set the SenderCompID") symbolAsCompID := flag.Bool("sid", false, "use symbol as SenderCompID") + mdbs := flag.String("mdbs", "", "market data buffer size (e.g. 1M, 16384, etc.)") flag.Parse() @@ -89,6 +90,9 @@ func main() { } p.SetString("fix", *fix) p.SetString("senderCompID", *senderCompID) + if *mdbs!="" { + p.SetString("marketdata_buffer", *mdbs) + } if len(quotedSymbols)>0 { // have to use symbol as senderCompID if quoting multiple symbols since multiple connections are used diff --git a/pkg/common/properties.go b/pkg/common/properties.go index c6a977e..d99676b 100644 --- a/pkg/common/properties.go +++ b/pkg/common/properties.go @@ -13,6 +13,7 @@ import ( type Properties interface { GetString(key string, def string) string SetString(key string, value string) + GetBytes(key string, def int) int Clone() Properties } @@ -34,6 +35,20 @@ func (p properties) SetString(key string, value string) { p.props[key] = value } +func (p properties) GetBytes(key string, def int) int { + key = strings.TrimSpace(key) + v, ok := p.props[key] + if !ok { + return def + } + v = strings.ToUpper(v) + if strings.HasSuffix(v,"M") { + return ParseInt(v[:len(v)-1]) * 1024 * 1024 + } + return ParseInt(v) +} + + func (p properties) Clone() Properties { return properties{props: maps.Clone(p.props)} } diff --git a/pkg/connector/marketdata/marketdata.go b/pkg/connector/marketdata/marketdata.go index 58342ec..4ec8d55 100644 --- a/pkg/connector/marketdata/marketdata.go +++ b/pkg/connector/marketdata/marketdata.go @@ -88,7 +88,7 @@ func StartMarketDataReceiver(c ExchangeConnector, callback ConnectorCallback, pr panic(err) } log.Println("listening for market data on", l.LocalAddr()) - l.SetReadBuffer(16 * 1024 * 1024) + l.SetReadBuffer(props.GetBytes("marketdata_buffer",1024*1024)) b := make([]byte, protocol.MaxMsgSize) for { n, _, err := l.ReadFromUDP(b) From bc63ad8441d9b00ef9cf16df74c31a7e5cce0d42 Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 15:41:49 -0500 Subject: [PATCH 32/52] add benchmark market maker --- cmd/marketmaker/main.go | 15 ++++++++++----- configs/got_settings | 3 ++- configs/instruments.txt | 20 ++++++++++++++++++++ go.mod | 2 +- internal/exchange/marketdata.go | 18 +++++++++++------- 5 files changed, 44 insertions(+), 14 deletions(-) diff --git a/cmd/marketmaker/main.go b/cmd/marketmaker/main.go index 3b454fa..eac7af0 100644 --- a/cmd/marketmaker/main.go +++ b/cmd/marketmaker/main.go @@ -44,8 +44,9 @@ func (*MyCallback) OnTrade(trade *Trade) { func main() { - symbol := flag.String("symbol", "IBM", "set the symbol") + symbol := flag.String("symbol", "", "set the symbol") symbols := flag.String("symbols", "", "set the comma delimited list of symbols") + bench := flag.Int("bench", 0, "benchmark market maker using N symbols (n > 0)") fix := flag.String("fix", "configs/qf_connector_settings", "set the fix session file") props := flag.String("props", "configs/got_settings", "set exchange properties file") delay := flag.Int("delay", 0, "set the delay in ms after each quote, 0 to disable") @@ -60,16 +61,20 @@ func main() { quotedSymbols := make([]string,0); - if(*symbols!="") { + if *symbols!="" { quotedSymbols = append(quotedSymbols,strings.Split(*symbols,",")...) - } else if(*symbol!="") { + } else if *symbol!="" { quotedSymbols = append(quotedSymbols,*symbol) + } else if *bench!=0 { + for i := range *bench { + quotedSymbols = append(quotedSymbols,fmt.Sprint("S",i+1)) + } } - fmt.Println("quoted symbols: ",strings.Join(quotedSymbols,",")) + fmt.Println("quoted symbols:",strings.Join(quotedSymbols,",")) if len(quotedSymbols)==0 { - panic("most provide either symbols or symbol") + panic("most provide either symbols, symbol, or bench") } if *cpuprofile != "" { diff --git a/configs/got_settings b/configs/got_settings index 79294b9..89dde4e 100644 --- a/configs/got_settings +++ b/configs/got_settings @@ -1,5 +1,6 @@ multicast_addr=224.0.0.100:9999 -multicast_intf=lo0 +multicast_intf=en0 +marketdata_buffer=6M replay_host=localhost replay_port=9999 grpc_port=5000 diff --git a/configs/instruments.txt b/configs/instruments.txt index a8110ba..38f2dff 100644 --- a/configs/instruments.txt +++ b/configs/instruments.txt @@ -32,3 +32,23 @@ 27 S17 28 S18 29 S19 +30 S20 +31 S21 +32 S22 +33 S23 +34 S24 +35 S25 +36 S26 +37 S27 +38 S28 +39 S29 +40 S30 +41 S31 +42 S32 +43 S33 +44 S34 +45 S35 +46 S36 +47 S37 +48 S38 +49 S39 diff --git a/go.mod b/go.mod index caeaa95..808693a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/robaho/go-trader -go 1.21.0 +go 1.22 require ( github.com/VividCortex/gohistogram v1.0.0 diff --git a/internal/exchange/marketdata.go b/internal/exchange/marketdata.go index ac748d2..776dedb 100644 --- a/internal/exchange/marketdata.go +++ b/internal/exchange/marketdata.go @@ -5,14 +5,15 @@ import ( "container/list" "encoding/binary" "fmt" - . "github.com/robaho/fixed" - "golang.org/x/net/ipv4" "log" "net" "strconv" "sync" "sync/atomic" + . "github.com/robaho/fixed" + "golang.org/x/net/ipv4" + . "github.com/robaho/go-trader/pkg/common" "github.com/robaho/go-trader/pkg/protocol" ) @@ -23,7 +24,7 @@ var bookCache sync.Map var statsCache sync.Map var eventChannel chan MarketEvent -var lastSentBook map[Instrument]uint64 // to avoid publishing exact same book multiple times due to coalescing +var lastSentBook map[string]uint64 // to avoid publishing exact same book multiple times due to coalescing var sequence uint64 var udpCon *net.UDPConn var pUdpCon *ipv4.PacketConn @@ -186,7 +187,7 @@ func publish() { } func getLatestBook(book *Book) *Book { - lastSeq, ok := lastSentBook[book.Instrument] + lastSeq, ok := lastSentBook[book.Instrument.Symbol()] if ok { if lastSeq >= book.Sequence { return nil @@ -238,8 +239,8 @@ func sendPacket(data []byte) { } func startMarketData() { - eventChannel = make(chan MarketEvent, 1000) - lastSentBook = make(map[Instrument]uint64) + eventChannel = make(chan MarketEvent, 1024*1024) + lastSentBook = make(map[string]uint64) // read settings and create socket @@ -276,7 +277,10 @@ func startMarketData() { if err != nil { panic(err) } - c.SetWriteBuffer(1024 * 1024) + err = c.SetWriteBuffer(props.GetBytes("marketdata_buffer",1024 * 1024)) + if err!=nil { + fmt.Println("unable to set udp write buffer size",err) + } udpCon = c pUdpCon = ipv4.NewPacketConn(udpCon) From 0954ff352a9151f1de4b9a0ad4c4c58c7f4e48ec Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 16:27:58 -0500 Subject: [PATCH 33/52] log setting of market data buffer size --- internal/exchange/marketdata.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/exchange/marketdata.go b/internal/exchange/marketdata.go index 776dedb..a2eb6c6 100644 --- a/internal/exchange/marketdata.go +++ b/internal/exchange/marketdata.go @@ -277,9 +277,12 @@ func startMarketData() { if err != nil { panic(err) } - err = c.SetWriteBuffer(props.GetBytes("marketdata_buffer",1024 * 1024)) + bufferSize := props.GetBytes("marketdata_buffer",1024 * 1024) + err = c.SetWriteBuffer(bufferSize) if err!=nil { - fmt.Println("unable to set udp write buffer size",err) + fmt.Println("unable to set market data write buffer size to",bufferSize,err) + } else { + fmt.Println("set market data buffer size",bufferSize) } udpCon = c From c0ec80dfaebdce42c6a03e19664f409ea6f90bca Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 16:57:03 -0500 Subject: [PATCH 34/52] allow dynamic instrument creation on all connectors --- configs/instruments.txt | 39 ------------------------------------ internal/exchange/grpc.go | 18 ++++++++++++++++- internal/exchange/qfixapp.go | 5 +---- pkg/common/instrumentmap.go | 2 +- 4 files changed, 19 insertions(+), 45 deletions(-) diff --git a/configs/instruments.txt b/configs/instruments.txt index 38f2dff..907ba78 100644 --- a/configs/instruments.txt +++ b/configs/instruments.txt @@ -13,42 +13,3 @@ 3 AMZN 4 GOOG 5 FB -11 S1 -12 S2 -13 S3 -14 S4 -15 S5 -16 S6 -17 S7 -18 S8 -19 S9 -20 S10 -21 S11 -22 S12 -23 S13 -24 S14 -25 S15 -26 S16 -27 S17 -28 S18 -29 S19 -30 S20 -31 S21 -32 S22 -33 S23 -34 S24 -35 S25 -36 S26 -37 S27 -38 S28 -39 S29 -40 S30 -41 S31 -42 S32 -43 S33 -44 S34 -45 S35 -46 S36 -47 S37 -48 S38 -49 S39 diff --git a/internal/exchange/grpc.go b/internal/exchange/grpc.go index bd86638..df8b608 100644 --- a/internal/exchange/grpc.go +++ b/internal/exchange/grpc.go @@ -2,10 +2,11 @@ package exchange import ( "fmt" - . "github.com/robaho/fixed" "log" "strconv" + . "github.com/robaho/fixed" + "github.com/pkg/errors" . "github.com/robaho/go-trader/pkg/common" "github.com/robaho/go-trader/pkg/protocol" @@ -148,6 +149,8 @@ func (s *grpcServer) Connection(conn protocol.Exchange_ConnectionServer) error { err = s.modify(conn, client, msg.GetRequest().(*protocol.InMessage_Modify).Modify) case *protocol.InMessage_Cancel: err = s.cancel(conn, client, msg.GetRequest().(*protocol.InMessage_Cancel).Cancel) + case *protocol.InMessage_Secdefreq: + err = s.createInstrument(conn, client, msg.GetRequest().(*protocol.InMessage_Secdefreq).Secdefreq) } if err != nil { @@ -222,6 +225,19 @@ func (s *grpcServer) cancel(server protocol.Exchange_ConnectionServer, client *g s.e.CancelOrder(client, NewOrderID(strconv.Itoa(int(request.ClOrdId)))) return nil } +func (s *grpcServer) createInstrument(conn protocol.Exchange_ConnectionServer, client *grpcClient, request *protocol.SecurityDefinitionRequest) error { + symbol := request.Symbol + instrument := IMap.GetBySymbol(symbol) + if instrument != nil { + sec := &protocol.OutMessage_Secdef{Secdef: &protocol.SecurityDefinition{Symbol: symbol, InstrumentID: instrument.ID()}} + return conn.Send(&protocol.OutMessage{Reply: sec}) + } else { + instrument = NewInstrument(IMap.NextID(), symbol) + IMap.Put(instrument) + sec := &protocol.OutMessage_Secdef{Secdef: &protocol.SecurityDefinition{Symbol: symbol, InstrumentID: instrument.ID()}} + return conn.Send(&protocol.OutMessage{Reply: sec}) + } +} func toErrS(err error) string { if err == nil { diff --git a/internal/exchange/qfixapp.go b/internal/exchange/qfixapp.go index 351036f..c2d5d82 100644 --- a/internal/exchange/qfixapp.go +++ b/internal/exchange/qfixapp.go @@ -219,8 +219,7 @@ func (app *myApplication) onSecurityDefinitionRequest(msg securitydefinitionrequ if instrument != nil { app.sendInstrument(instrument, reqid, sessionID) } else { - app.instrumentID++ - instrument = NewInstrument(app.instrumentID, symbol) + instrument = NewInstrument(IMap.NextID(),symbol) IMap.Put(instrument) app.sendInstrument(instrument, reqid, sessionID) } @@ -325,6 +324,4 @@ func init() { App.AddRoute(massquote.Route(App.onMassQuote)) App.AddRoute(securitydefinitionrequest.Route(App.onSecurityDefinitionRequest)) App.AddRoute(securitylistrequest.Route(App.onSecurityListRequest)) - - App.instrumentID = 1000000 // start high for dynamic instruments } diff --git a/pkg/common/instrumentmap.go b/pkg/common/instrumentmap.go index b77f085..a0702ca 100644 --- a/pkg/common/instrumentmap.go +++ b/pkg/common/instrumentmap.go @@ -45,7 +45,7 @@ func (im *instrumentMap) AllSymbols() []string { // the put/nextID are only needed if dynamic instrument creation is added, or for test cases -func (im *instrumentMap) nextID() int64 { +func (im *instrumentMap) NextID() int64 { return atomic.AddInt64(&im.id, 1) } From 813ce86705962c1ec768acb52cda0442b161cc5c Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 16:57:43 -0500 Subject: [PATCH 35/52] dynamically create instruments for bench testing --- cmd/marketmaker/main.go | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/cmd/marketmaker/main.go b/cmd/marketmaker/main.go index eac7af0..d058d09 100644 --- a/cmd/marketmaker/main.go +++ b/cmd/marketmaker/main.go @@ -20,6 +20,7 @@ import ( type MyCallback struct { ch chan bool symbol string + instrumentWG *sync.WaitGroup } func (cb *MyCallback) OnBook(book *Book) { @@ -28,7 +29,10 @@ func (cb *MyCallback) OnBook(book *Book) { } } -func (*MyCallback) OnInstrument(instrument Instrument) { +func (cb *MyCallback) OnInstrument(instrument Instrument) { + if cb.instrumentWG!=nil { + cb.instrumentWG.Done() + } } func (*MyCallback) OnOrderStatus(order *Order) { @@ -99,6 +103,10 @@ func main() { p.SetString("marketdata_buffer", *mdbs) } + if *bench > 0 { + createSymbols(p,quotedSymbols) + } + if len(quotedSymbols)>0 { // have to use symbol as senderCompID if quoting multiple symbols since multiple connections are used *symbolAsCompID=true; @@ -113,6 +121,23 @@ func main() { wg.Wait() } +func createSymbols(p Properties,symbols []string) { + var wg = sync.WaitGroup{} + var callback = MyCallback{ch: make(chan bool, 128), symbol: "?", instrumentWG: &wg} + var exchange = connector.NewConnector(&callback, p, nil) + + exchange.Connect() + if !exchange.IsConnected() { + panic("exchange is not connected") + } + for _,s := range symbols { + wg.Add(1) + exchange.CreateInstrument(s) + } + wg.Wait() + exchange.Disconnect() +} + func quoteSymbol(symbol string, p Properties,duration int, delay int,symbolAsCompID bool,wg *sync.WaitGroup) { defer wg.Done() p = p.Clone() @@ -122,7 +147,7 @@ func quoteSymbol(symbol string, p Properties,duration int, delay int,symbolAsCom p.SetString("senderCompID", symbol) } - var callback = MyCallback{make(chan bool, 128), symbol} + var callback = MyCallback{ch:make(chan bool, 128), symbol: symbol} var exchange = connector.NewConnector(&callback, p, nil) From 6a76b17f6dc2bbd87b30eab08b0271d7fcb05829 Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 17:51:15 -0500 Subject: [PATCH 36/52] share grpc connection to server --- pkg/connector/grpc/connector.go | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkg/connector/grpc/connector.go b/pkg/connector/grpc/connector.go index 2e7e077..5ded894 100644 --- a/pkg/connector/grpc/connector.go +++ b/pkg/connector/grpc/connector.go @@ -20,7 +20,6 @@ type grpcConnector struct { nextQuote int64 // holds OrderID->*Order, concurrent since notifications/updates may arrive while order is being processed orders sync.Map - conn *grpc.ClientConn stream protocol.Exchange_ConnectionClient loggedIn StatusBool // true after all instruments are downloaded from exchange @@ -29,24 +28,33 @@ type grpcConnector struct { log io.Writer } +var clients map[string]*grpc.ClientConn = make(map[string]*grpc.ClientConn) +var connectionLock = sync.Mutex{} + func (c *grpcConnector) IsConnected() bool { return c.connected } func (c *grpcConnector) Connect() error { + connectionLock.Lock() + defer connectionLock.Unlock() + if c.connected { return AlreadyConnected } addr := c.props.GetString("grpc_host", "localhost") + ":" + c.props.GetString("grpc_port", "5000") - conn, err := grpc.Dial(addr, grpc.WithInsecure()) - if err != nil { - return err + conn, ok := clients[addr] + var err error + if !ok { + conn, err = grpc.Dial(addr, grpc.WithInsecure()) + if err != nil { + return err + } + clients[addr]=conn } - c.conn = conn - client := protocol.NewExchangeClient(conn) //timeoutSecs := time.Second * time.Duration(timeout) @@ -127,7 +135,7 @@ func (c *grpcConnector) Disconnect() error { if !c.connected { return NotConnected } - c.conn.Close() + c.stream.CloseSend() c.connected = false c.loggedIn.SetFalse() return nil From 35d2da5aa897a943b335f6766c505a53ea0ec635 Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 18:24:37 -0500 Subject: [PATCH 37/52] update performance metrics --- README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 95291ad..9d83618 100644 --- a/README.md +++ b/README.md @@ -54,22 +54,26 @@ client # performance -Using the quickfixgo connector: +Configuration: -- test machine is a 3.4 ghz i7 (4 core,8 thread), running osx -- clients and exchange process are running on the same machine +- client machine is a Mac Mini M1, running OSX Sonoma +- server machine is a 4.0 ghz i7 iMac (4 core, 8 thread), running OSX Monterey +- using 1 gbit ethernet connection - a quote is a double-sided (bid & ask) -- a timing is measured from the quote message generation to the reception of the multicast market data +- timings are measured from the quote message generation on the client, to the reception of the multicast market data on the client -**1 market maker can perform 6k round-trip quotes/sec** +**using `marketmaker -bench 75 -proto fix`** -**4 market makers can perform 16k round-trip quotes/sec** +75k+ round-trip quotes per second with an average latency of 1ms -Using the gRPC connector: +**using `marketmaker -bench 150 -proto grpc`** -**1 market maker can perform 12k round-trip quotes/sec** +**300k+** round-trip quotes per second with an average latency of 500us -**4 market makers can perform 30k round-trip quotes/sec** +_The CPUs are saturated on both the client and server._ + +## 3 microsecs per roundtrip quote over the network ! ## +
# REST api From 1d1ca42c1c2b4cd58fbd1e0358995916a536e048 Mon Sep 17 00:00:00 2001 From: robert engels Date: Mon, 22 Jul 2024 18:27:46 -0500 Subject: [PATCH 38/52] add TODO and cleanup --- pkg/connector/grpc/connector.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/connector/grpc/connector.go b/pkg/connector/grpc/connector.go index 5ded894..687b4eb 100644 --- a/pkg/connector/grpc/connector.go +++ b/pkg/connector/grpc/connector.go @@ -28,6 +28,7 @@ type grpcConnector struct { log io.Writer } +//TODO need reference count, since grpc.ClientConn is shared to allow for complete clean-up var clients map[string]*grpc.ClientConn = make(map[string]*grpc.ClientConn) var connectionLock = sync.Mutex{} @@ -344,7 +345,7 @@ func (c *grpcConnector) handleExecutionReport(rpt *protocol.ExecutionReport) { side = Sell } - fill := &Fill{instrument, id == 0, order, exchangeId, lastQty, lastPx, side, false} + fill := &Fill{Instrument: instrument, IsQuote: id == 0, Order: order, ExchangeID: exchangeId, Quantity: lastQty, Price: lastPx, Side: side, IsLegTrade: false} c.callback.OnFill(fill) } From cfea90b6d6f5eef24e2e93e2d08406d39be1ec67 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:53:28 +0000 Subject: [PATCH 39/52] Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0. --- updated-dependencies: - dependency-name: google.golang.org/protobuf dependency-type: indirect ... Signed-off-by: dependabot[bot] --- go.mod | 3 +-- go.sum | 20 ++++---------------- 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/go.mod b/go.mod index 808693a..b7eeb2f 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,6 @@ require ( ) require ( - github.com/armon/go-proxyproto v0.1.0 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/mattn/go-runewidth v0.0.9 // indirect github.com/nsf/termbox-go v1.1.1 // indirect @@ -28,6 +27,6 @@ require ( golang.org/x/sys v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect - google.golang.org/protobuf v1.31.0 // indirect + google.golang.org/protobuf v1.33.0 // indirect gopkg.in/fsnotify.v1 v1.4.7 // indirect ) diff --git a/go.sum b/go.sum index 1cdf6bc..aa2c83d 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,5 @@ github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= -github.com/armon/go-proxyproto v0.1.0 h1:TWWcSsjco7o2itn6r25/5AqKBiWmsiuzsUDLT/MTl7k= -github.com/armon/go-proxyproto v0.1.0/go.mod h1:Xj90dce2VKbHzRAeiVQAMBtj4M5oidoXJ8lmgyW21mw= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= @@ -16,8 +14,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-sqlite3 v1.14.18 h1:JL0eqdCOq6DJVNPSvArO/bIV9/P7fbGrV00LZHc+5aI= -github.com/mattn/go-sqlite3 v1.14.18/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= +github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= +github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/nsf/termbox-go v1.1.1 h1:nksUPLCb73Q++DwbYUBEglYBRPZyoXJdrj5L+TkjyZY= github.com/nsf/termbox-go v1.1.1/go.mod h1:T0cTdVuOwf7pHQNtfhnEbzHbcNyCEcVU4YPpouCbVxo= github.com/pires/go-proxyproto v0.7.0 h1:IukmRewDQFWC7kfnb66CSomk2q/seBuilHBYFwyq0Hs= @@ -32,32 +30,22 @@ github.com/quickfixgo/field v0.1.0 h1:JVO6fVD6Nkyy8e/ROYQtV/nQhMX/BStD5Lq7XIgYz2 github.com/quickfixgo/field v0.1.0/go.mod h1:Zu0qYmpj+gljlB2HgpUt9EcTIThs2lIQb8C57qbJr8o= github.com/quickfixgo/fix44 v0.1.0 h1:g/rTl6mXDlG7iIMbY7zaPbHcj9N/B+tteOZ01yGzeSQ= github.com/quickfixgo/fix44 v0.1.0/go.mod h1:d6Ia02Eq/JYgKCn/2V9FHxguAl1Alp/yu/xVpry82dA= -github.com/quickfixgo/quickfix v0.9.0 h1:WshR3GUSxR69ZrSQfppKs2zZ12dTYtU3JUgQg+PAOdA= -github.com/quickfixgo/quickfix v0.9.0/go.mod h1:t5Z881dOZ2Dz5vM6KIbMCx3YpAiFPFf/iCLCSn91Qqo= github.com/quickfixgo/quickfix v0.9.4 h1:wwZKGk09wjuRDkqid6dYW7DJrSb7UcaxIvm44orx55I= github.com/quickfixgo/quickfix v0.9.4/go.mod h1:Epcqgr7ARlUYUsl/bkEXUcbWoCCB048u6zBXLTC6F88= github.com/quickfixgo/tag v0.1.0 h1:R2A1Zf7CBE903+mOQlmTlfTmNZQz/yh7HunMbgcsqsA= github.com/quickfixgo/tag v0.1.0/go.mod h1:l/drB1eO3PwN9JQTDC9Vt2EqOcaXk3kGJ+eeCQljvAI= github.com/robaho/fixed v0.0.0-20230815003229-929de1ea03c3 h1:z2AXOxvJ7rXsbyv3s9NIZBKAJgEtSE6/lR/TWafkm0w= github.com/robaho/fixed v0.0.0-20230815003229-929de1ea03c3/go.mod h1:9YjDu6DCo4pkAT+5VYIW1CPk2nh9CnvT/x5YfhSYlnQ= -github.com/robaho/gocui v0.3.0 h1:xX5dcUDCUlO/xXA6Jzh979t+7tLkLM4KeToIioJrfrE= -github.com/robaho/gocui v0.3.0/go.mod h1:pGoMrUaM3DO8ORottR2+ffXjklvRVW0pUnXF77AK6Ow= github.com/robaho/gocui v0.3.1 h1:8CfmzgaK/Cgx3tMEsYDyvxGIkHZ6pYn5m826YG0oUeo= github.com/robaho/gocui v0.3.1/go.mod h1:pGoMrUaM3DO8ORottR2+ffXjklvRVW0pUnXF77AK6Ow= -github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= -github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= @@ -69,8 +57,8 @@ google.golang.org/grpc v1.60.0 h1:6FQAR0kM31P6MRdeluor2w2gPaS4SVNrD/DNTxrQ15k= google.golang.org/grpc v1.60.0/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= From 2202d7af31a47fb55f075a174bf13d8557e4c5f9 Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 23 Jul 2024 13:04:14 -0500 Subject: [PATCH 40/52] reference counting for shared grpc connections --- pkg/connector/grpc/connector.go | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/pkg/connector/grpc/connector.go b/pkg/connector/grpc/connector.go index 687b4eb..51be6aa 100644 --- a/pkg/connector/grpc/connector.go +++ b/pkg/connector/grpc/connector.go @@ -21,6 +21,7 @@ type grpcConnector struct { // holds OrderID->*Order, concurrent since notifications/updates may arrive while order is being processed orders sync.Map stream protocol.Exchange_ConnectionClient + addr string loggedIn StatusBool // true after all instruments are downloaded from exchange downloaded StatusBool @@ -28,8 +29,13 @@ type grpcConnector struct { log io.Writer } +type cachedConnection struct { + refCount int + conn *grpc.ClientConn +} + //TODO need reference count, since grpc.ClientConn is shared to allow for complete clean-up -var clients map[string]*grpc.ClientConn = make(map[string]*grpc.ClientConn) +var clients map[string]*cachedConnection = make(map[string]*cachedConnection) var connectionLock = sync.Mutex{} func (c *grpcConnector) IsConnected() bool { @@ -45,15 +51,20 @@ func (c *grpcConnector) Connect() error { } addr := c.props.GetString("grpc_host", "localhost") + ":" + c.props.GetString("grpc_port", "5000") + c.addr = addr - conn, ok := clients[addr] + cached, ok := clients[addr] + var conn *grpc.ClientConn var err error if !ok { conn, err = grpc.Dial(addr, grpc.WithInsecure()) if err != nil { return err } - clients[addr]=conn + clients[addr]=&cachedConnection{conn: conn, refCount: 1} + } else { + conn = cached.conn + cached.refCount++ } client := protocol.NewExchangeClient(conn) @@ -83,6 +94,9 @@ func (c *grpcConnector) Connect() error { for { msg, err := stream.Recv() if err != nil { + if !c.IsConnected() { + return + } log.Println("unable to receive message", err) c.Disconnect() return @@ -133,12 +147,23 @@ func (c *grpcConnector) Connect() error { } func (c *grpcConnector) Disconnect() error { + connectionLock.Lock() + defer connectionLock.Unlock() + if !c.connected { return NotConnected } + c.stream.CloseSend() c.connected = false c.loggedIn.SetFalse() + + cached := clients[c.addr] + cached.refCount-- + if cached.refCount==0 { + delete(clients,c.addr) + } + return nil } From 4d82c0219fb2e1db11ad3090aac6a12eac238f01 Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 23 Jul 2024 13:04:48 -0500 Subject: [PATCH 41/52] fix updates per second calculations --- .vscode/launch.json | 3 ++- cmd/marketmaker/main.go | 14 +++++++++----- configs/instruments.txt | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index cf2778c..5156d82 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -18,7 +18,8 @@ "request": "launch", "mode": "auto", "program": "cmd/marketmaker", - "cwd": "${workspaceFolder}" + "cwd": "${workspaceFolder}", + "args": ["-bench","100","-proto","grpc","-mdbs","8m","-duration","30"] } ] } \ No newline at end of file diff --git a/cmd/marketmaker/main.go b/cmd/marketmaker/main.go index d058d09..ecf22ac 100644 --- a/cmd/marketmaker/main.go +++ b/cmd/marketmaker/main.go @@ -119,6 +119,7 @@ func main() { go quoteSymbol(symbol,p,*duration,*delay,*symbolAsCompID, &wg) } wg.Wait() + fmt.Println("all quoters completed") } func createSymbols(p Properties,symbols []string) { @@ -135,6 +136,7 @@ func createSymbols(p Properties,symbols []string) { exchange.CreateInstrument(s) } wg.Wait() + fmt.Println("created",len(symbols),"instruments") exchange.Disconnect() } @@ -155,6 +157,7 @@ func quoteSymbol(symbol string, p Properties,duration int, delay int,symbolAsCom if !exchange.IsConnected() { panic("exchange is not connected") } + defer exchange.Disconnect() err := exchange.DownloadInstruments() if err != nil { @@ -220,9 +223,8 @@ func quoteSymbol(symbol string, p Properties,duration int, delay int,symbolAsCom } <-callback.ch // drain channel - if len(callback.ch) > 0 { - for range callback.ch { - } + for len(callback.ch) > 0 { + <-callback.ch } } h.Add(float64(time.Since(now).Nanoseconds())) @@ -230,11 +232,13 @@ func quoteSymbol(symbol string, p Properties,duration int, delay int,symbolAsCom time.Sleep(time.Duration(int64(delay)) * time.Millisecond) } atomic.AddUint64(&updates, 1) - if time.Since(start).Seconds() > 10 { - fmt.Printf("updates per second %d, avg rtt %dus, 10%% rtt %dus 99%% rtt %dus\n", updates/10, int(h.Mean()/1000.0), int(h.Quantile(.10)/1000.0), int(h.Quantile(.99)/1000.0)) + seconds := time.Since(start).Seconds() + if seconds > 10 { + fmt.Printf("%s updates per second %d, avg rtt %dus, 10%% rtt %dus 99%% rtt %dus\n", symbol, updates/uint64(seconds), int(h.Mean()/1000.0), int(h.Quantile(.10)/1000.0), int(h.Quantile(.99)/1000.0)) updates = 0 start = time.Now() h = gohistogram.NewHistogram(50) } } + fmt.Println("completed sending quotes on", instrument.Symbol()) } diff --git a/configs/instruments.txt b/configs/instruments.txt index 907ba78..2f8dc0b 100644 --- a/configs/instruments.txt +++ b/configs/instruments.txt @@ -12,4 +12,4 @@ 2 AAPL 3 AMZN 4 GOOG -5 FB +5 FB \ No newline at end of file From 2b5a1c7b860ff02aa6387a38abc7513219b2d893 Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 23 Jul 2024 15:25:21 -0500 Subject: [PATCH 42/52] fix dynamic instrument creation to no collide with loaded instruments --- cmd/marketmaker/main.go | 2 ++ pkg/common/instrumentmap.go | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/cmd/marketmaker/main.go b/cmd/marketmaker/main.go index ecf22ac..9947a4a 100644 --- a/cmd/marketmaker/main.go +++ b/cmd/marketmaker/main.go @@ -24,12 +24,14 @@ type MyCallback struct { } func (cb *MyCallback) OnBook(book *Book) { + // fmt.Println("received book",book.Instrument.Symbol()) if book.Instrument.Symbol() == cb.symbol { cb.ch <- true } } func (cb *MyCallback) OnInstrument(instrument Instrument) { + // fmt.Println("received instrument",instrument.ID(),instrument.Symbol()) if cb.instrumentWG!=nil { cb.instrumentWG.Done() } diff --git a/pkg/common/instrumentmap.go b/pkg/common/instrumentmap.go index a0702ca..3df24ac 100644 --- a/pkg/common/instrumentmap.go +++ b/pkg/common/instrumentmap.go @@ -76,6 +76,10 @@ func (im *instrumentMap) Load(filepath string) error { if len(parts) == 2 { i := NewInstrument(int64(id), parts[1]) im.Put(i) + if id > int(im.id) { + // ensure next dynamic instrument does not collide with loaded ones + atomic.StoreInt64(&im.id,int64(id)) + } } } return nil From 0884d8ad91b5d97d5293c8c92f316770feca672c Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 23 Jul 2024 16:14:16 -0500 Subject: [PATCH 43/52] easier to use rate logging for market maker --- cmd/marketmaker/main.go | 73 ++++++++++++++++++-------- pkg/connector/marketdata/marketdata.go | 2 +- 2 files changed, 52 insertions(+), 23 deletions(-) diff --git a/cmd/marketmaker/main.go b/cmd/marketmaker/main.go index 9947a4a..1e9d053 100644 --- a/cmd/marketmaker/main.go +++ b/cmd/marketmaker/main.go @@ -109,6 +109,8 @@ func main() { createSymbols(p,quotedSymbols) } + downloadInstruments(p) + if len(quotedSymbols)>0 { // have to use symbol as senderCompID if quoting multiple symbols since multiple connections are used *symbolAsCompID=true; @@ -120,7 +122,9 @@ func main() { wg.Add(1) go quoteSymbol(symbol,p,*duration,*delay,*symbolAsCompID, &wg) } + go reportRate() wg.Wait() + close(timingQueue) fmt.Println("all quoters completed") } @@ -142,12 +146,53 @@ func createSymbols(p Properties,symbols []string) { exchange.Disconnect() } -func quoteSymbol(symbol string, p Properties,duration int, delay int,symbolAsCompID bool,wg *sync.WaitGroup) { +func downloadInstruments(p Properties) { + var callback = MyCallback{ch: make(chan bool, 128), symbol: "?"} + var exchange = connector.NewConnector(&callback, p, nil) + + exchange.Connect() + if !exchange.IsConnected() { + panic("exchange is not connected") + } + exchange.DownloadInstruments() + exchange.Disconnect() +} + +var numberQuotes uint64 +var timingQueue = make(chan int64,1024*1024) + +func reportRate() { + var max uint64 + h := gohistogram.NewHistogram(50) + + start:= time.Now() + prev := atomic.LoadUint64(&numberQuotes) + + for { + timing := <- timingQueue + h.Add(float64(timing)) + seconds := time.Since(start).Seconds() + if seconds > 10 { + current := atomic.LoadUint64(&numberQuotes) + updates := current - prev + rate := updates/uint64(seconds) + if rate > max { + max = rate + } + fmt.Printf("updates per second %d, max ups %d, avg rtt %dus, 10%% rtt %dus 99%% rtt %dus\n", rate, max, int(h.Mean()/1000.0), int(h.Quantile(.10)/1000.0), int(h.Quantile(.99)/1000.0)) + h = gohistogram.NewHistogram(50) + start = time.Now() + prev = atomic.LoadUint64(&numberQuotes) + } + } +} + +func quoteSymbol(symbol string, p Properties,duration int,delay int,symbolAsCompID bool,wg *sync.WaitGroup) { defer wg.Done() p = p.Clone() if symbolAsCompID { - fmt.Println("setting senderCompID to",symbol) + // fmt.Println("setting senderCompID to",symbol) p.SetString("senderCompID", symbol) } @@ -161,22 +206,15 @@ func quoteSymbol(symbol string, p Properties,duration int, delay int,symbolAsCom } defer exchange.Disconnect() - err := exchange.DownloadInstruments() - if err != nil { - panic(err) - } - instrument := IMap.GetBySymbol(symbol) if instrument == nil { log.Fatal("unknown symbol", symbol) } - var updates uint64 - start := time.Now() end := start.Add(time.Duration(int64(duration)) * time.Second) - fmt.Println("sending quotes on", instrument.Symbol(), "...") + // fmt.Println("sending quotes on", instrument.Symbol(), "...") r := rand.New(rand.NewSource(time.Now().UnixNano())) @@ -188,8 +226,6 @@ func quoteSymbol(symbol string, p Properties,duration int, delay int,symbolAsCom lowLim := NewDecimal("75") highLim := NewDecimal("125") - h := gohistogram.NewHistogram(50) - for duration == 0 || time.Now().Before(end) { var delta = 1 var r = r.Intn(10) @@ -229,18 +265,11 @@ func quoteSymbol(symbol string, p Properties,duration int, delay int,symbolAsCom <-callback.ch } } - h.Add(float64(time.Since(now).Nanoseconds())) + timingQueue <- time.Since(now).Nanoseconds() + atomic.AddUint64(&numberQuotes, 1) if delay != 0 { time.Sleep(time.Duration(int64(delay)) * time.Millisecond) } - atomic.AddUint64(&updates, 1) - seconds := time.Since(start).Seconds() - if seconds > 10 { - fmt.Printf("%s updates per second %d, avg rtt %dus, 10%% rtt %dus 99%% rtt %dus\n", symbol, updates/uint64(seconds), int(h.Mean()/1000.0), int(h.Quantile(.10)/1000.0), int(h.Quantile(.99)/1000.0)) - updates = 0 - start = time.Now() - h = gohistogram.NewHistogram(50) - } } - fmt.Println("completed sending quotes on", instrument.Symbol()) + // fmt.Println("completed sending quotes on", instrument.Symbol()) } diff --git a/pkg/connector/marketdata/marketdata.go b/pkg/connector/marketdata/marketdata.go index 4ec8d55..1d20a23 100644 --- a/pkg/connector/marketdata/marketdata.go +++ b/pkg/connector/marketdata/marketdata.go @@ -41,7 +41,7 @@ func StartMarketDataReceiver(c ExchangeConnector, callback ConnectorCallback, pr existing,ok := receivers[saddr] if ok { - fmt.Fprintln(logOutput,"adding connector to existing md connector",saddr) + // fmt.Fprintln(logOutput,"adding connector to existing md connector",saddr) // existing receiver for this address, so only add our callback callbacks := existing.callbacks.Load().([]ConnectorCallback) callbacks = append(callbacks, callback) From cd97a339e7cc249b4659961c997ace118c4f8018 Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 23 Jul 2024 16:32:33 -0500 Subject: [PATCH 44/52] report exchange connection errors for market maker --- cmd/marketmaker/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/marketmaker/main.go b/cmd/marketmaker/main.go index 1e9d053..96f790c 100644 --- a/cmd/marketmaker/main.go +++ b/cmd/marketmaker/main.go @@ -80,7 +80,7 @@ func main() { fmt.Println("quoted symbols:",strings.Join(quotedSymbols,",")) if len(quotedSymbols)==0 { - panic("most provide either symbols, symbol, or bench") + panic("must provide either symbols, symbol, or bench") } if *cpuprofile != "" { @@ -133,9 +133,9 @@ func createSymbols(p Properties,symbols []string) { var callback = MyCallback{ch: make(chan bool, 128), symbol: "?", instrumentWG: &wg} var exchange = connector.NewConnector(&callback, p, nil) - exchange.Connect() + err := exchange.Connect() if !exchange.IsConnected() { - panic("exchange is not connected") + panic(fmt.Errorf("exchange is not connected %w",err)) } for _,s := range symbols { wg.Add(1) @@ -150,9 +150,9 @@ func downloadInstruments(p Properties) { var callback = MyCallback{ch: make(chan bool, 128), symbol: "?"} var exchange = connector.NewConnector(&callback, p, nil) - exchange.Connect() + err := exchange.Connect() if !exchange.IsConnected() { - panic("exchange is not connected") + panic(fmt.Errorf("exchange is not connected %w",err)) } exchange.DownloadInstruments() exchange.Disconnect() From 5a24970453e2ee54cedb0f251ee06f1e59ea3053 Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 23 Jul 2024 16:57:55 -0500 Subject: [PATCH 45/52] update performance stats --- README.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9d83618..21cc046 100644 --- a/README.md +++ b/README.md @@ -64,15 +64,27 @@ Configuration: **using `marketmaker -bench 75 -proto fix`** -75k+ round-trip quotes per second with an average latency of 1ms +90k+ round-trip quotes per second with an average latency of 1ms -**using `marketmaker -bench 150 -proto grpc`** +``` +updates per second 72707, max ups 72707, avg rtt 832us, 10% rtt 595us 99% rtt 5365us +updates per second 90279, max ups 90279, avg rtt 830us, 10% rtt 0us 99% rtt 4515us +updates per second 89215, max ups 90279, avg rtt 840us, 10% rtt 0us 99% rtt 4851us +``` -**300k+** round-trip quotes per second with an average latency of 500us +**using `marketmaker -bench 250 -proto grpc`** + +**400k+** round-trip quotes per second with an average latency of 600us + +``` +updates per second 410094, max ups 414584, avg rtt 609us, 10% rtt 0us 99% rtt 2390us +updates per second 411559, max ups 414584, avg rtt 607us, 10% rtt 0us 99% rtt 2455us +updates per second 412884, max ups 414584, avg rtt 605us, 10% rtt 0us 99% rtt 2270us +``` _The CPUs are saturated on both the client and server._ -## 3 microsecs per roundtrip quote over the network ! ## +## less than 3 microseconds per roundtrip quote over the network ! ##
# REST api From 3e7d9f65c651a026c0f5713ccf9fc0d81cc0218c Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 23 Jul 2024 17:09:04 -0500 Subject: [PATCH 46/52] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 21cc046..e94d79c 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ market maker bid/ask spread must be accounted for - which makes it far less than There are two different web interfaces available: - the default interface at / uses Go templates and server side rendering -- the alternative UI is written with Lit, and is available at /lit +- the alternative UI is written in Typescript using [Lit](https://lit.dev), and is available at /lit Use `npm run build` in the web_lit directory to build the Lit assets. From 2b92b5652eb5c6a93b83262f45ba1f237fb180b0 Mon Sep 17 00:00:00 2001 From: robert engels Date: Tue, 23 Jul 2024 17:09:58 -0500 Subject: [PATCH 47/52] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e94d79c..4c98487 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ market maker bid/ask spread must be accounted for - which makes it far less than There are two different web interfaces available: - the default interface at / uses Go templates and server side rendering -- the alternative UI is written in Typescript using [Lit](https://lit.dev), and is available at /lit +- the alternative UI is written in Typescript using [Lit](https://lit.dev) and the Rest api, and is available at /lit Use `npm run build` in the web_lit directory to build the Lit assets. From 38e5fa11cb439f9725768d35296a2da26abfe178 Mon Sep 17 00:00:00 2001 From: robert engels Date: Fri, 17 Jan 2025 15:07:33 -0600 Subject: [PATCH 48/52] update readme --- .gitignore | 3 ++- README.md | 72 +++++++++++++++++++++++++++++++-------------------- go-trader.iml | 10 ------- 3 files changed, 46 insertions(+), 39 deletions(-) delete mode 100644 go-trader.iml diff --git a/.gitignore b/.gitignore index 089908c..cde82b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules out .DS_Store -__debug_bin* \ No newline at end of file +__debug_bin* +bin \ No newline at end of file diff --git a/README.md b/README.md index 4c98487..4520115 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,24 @@ A financial exchange written in Go including complete order book, fix protocol, Check out [cpp_orderbook](https://github.com/robaho/cpp_orderbook) for a basic C++ version. -Uses quickfixgo or gRPC for client/server communication. - -Uses UDP multicast for market distribution. - -It uses the high-performance fixed point library [fixed](https://github.com/robaho/fixed) which I also developed. - -There is a sample client with a command line GUI, a sample "market maker", and a sample "playback". - -The exchange itself has a bare bones web interface, that uses web sockets to provide real-time book updates. +## Features + +- client to server communication using: + - FIX (using quickfixgo) + - gRPC +- UDP multicast for market data distribution. +- TCP replay of dropped market data packets. +- Uses the high-performance fixed point library [fixed](https://github.com/robaho/fixed) which I also developed. +- Includes multiple clients: + - command line + - server-side web using Go templates + - SPA web using Lit +- A sample "market maker" to mass quote the market. +- A sample "playback" to simulate markets from recorded market data. +- Supported order types: + - limit + - market +- [REST api](https://github.com/robaho/go-trader/blob/2b92b5652eb5c6a93b83262f45ba1f237fb180b0/internal/exchange/webserver.go#L41-L54) The exchange is designed to allow for easy back-testing of trading strategies. It supports limit and market orders. @@ -21,36 +30,39 @@ This can be run in conjunction with the 'marketmaker' sample to test the "algo". market maker bid/ask spread must be accounted for - which makes it far less than a 50/50 chance of being profitable... There are two different web interfaces available: -- the default interface at / uses Go templates and server side rendering -- the alternative UI is written in Typescript using [Lit](https://lit.dev) and the Rest api, and is available at /lit +- the default interface at `/` uses Go templates and server side rendering +- the alternative UI at `/lit` is written in Typescript using [Lit](https://lit.dev) and the Rest api -Use `npm run build` in the web_lit directory to build the Lit assets. +Use `npm run build` in the `web_lit` directory to build the Lit assets. It was primarily developed to further my knowledge of Go and test its suitability for high-performance financial applications. # install -go get github.com/robaho/go-trader +`go get github.com/robaho/go-trader` # build -go install github.com/robaho/go-trader/cmd/exchange - -go install github.com/robaho/go-trader/cmd/client - -go install github.com/robaho/go-trader/cmd/marketmaker - -go install github.com/robaho/go-trader/cmd/playback +``` +cd go-trader +mkdir bin +go build -o bin ./cmd/... +``` # run -cd $GOPATH/src/github.com/robaho/go-trader/cmd +
+cd go-trader
+
+Run each in a different terminal session.
+Ensure the correct interface is set in configs/got_settings for the client.
 
-exchange &
+bin/exchange
 
-marketmaker -symbol IBM
+bin/marketmaker -symbol IBM
 
-client
+bin/client
+
# performance @@ -61,10 +73,14 @@ Configuration: - using 1 gbit ethernet connection - a quote is a double-sided (bid & ask) - timings are measured from the quote message generation on the client, to the reception of the multicast market data on the client +- 90k+ quote per second over the network using FIX with latency < 1ms +- 400k+ quote per second over the network using FIX with latency < 600 usec -**using `marketmaker -bench 75 -proto fix`** +
+ performance details +
-90k+ round-trip quotes per second with an average latency of 1ms +**using `marketmaker -bench 75 -proto fix`** ``` updates per second 72707, max ups 72707, avg rtt 832us, 10% rtt 595us 99% rtt 5365us @@ -74,8 +90,6 @@ updates per second 89215, max ups 90279, avg rtt 840us, 10% rtt 0us 99% rtt 485 **using `marketmaker -bench 250 -proto grpc`** -**400k+** round-trip quotes per second with an average latency of 600us - ``` updates per second 410094, max ups 414584, avg rtt 609us, 10% rtt 0us 99% rtt 2390us updates per second 411559, max ups 414584, avg rtt 607us, 10% rtt 0us 99% rtt 2455us @@ -86,6 +100,8 @@ _The CPUs are saturated on both the client and server._ ## less than 3 microseconds per roundtrip quote over the network ! ##
+
+
# REST api diff --git a/go-trader.iml b/go-trader.iml deleted file mode 100644 index 1e0db6b..0000000 --- a/go-trader.iml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file From ee73d7597c83f6a9de08162bc6cc64debfb3ccd8 Mon Sep 17 00:00:00 2001 From: robert engels Date: Fri, 17 Jan 2025 22:59:31 -0600 Subject: [PATCH 49/52] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4520115..6103e29 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ Configuration: - a quote is a double-sided (bid & ask) - timings are measured from the quote message generation on the client, to the reception of the multicast market data on the client - 90k+ quote per second over the network using FIX with latency < 1ms -- 400k+ quote per second over the network using FIX with latency < 600 usec +- 400k+ quote per second over the network using gRPC with latency < 600 usec
performance details From 5c892c58735dfa6614e828f0b19d70dfac1bca11 Mon Sep 17 00:00:00 2001 From: robert engels Date: Sun, 19 Jan 2025 10:40:23 -0600 Subject: [PATCH 50/52] support sending mass quote ack --- internal/exchange/qfixapp.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/internal/exchange/qfixapp.go b/internal/exchange/qfixapp.go index c2d5d82..626005e 100644 --- a/internal/exchange/qfixapp.go +++ b/internal/exchange/qfixapp.go @@ -13,6 +13,7 @@ import ( "github.com/quickfixgo/field" "github.com/quickfixgo/fix44/executionreport" "github.com/quickfixgo/fix44/massquote" + "github.com/quickfixgo/fix44/massquoteacknowledgement" "github.com/quickfixgo/fix44/newordersingle" "github.com/quickfixgo/fix44/ordercancelreplacerequest" "github.com/quickfixgo/fix44/ordercancelrequest" @@ -162,6 +163,19 @@ func (app *myApplication) onMassQuote(msg massquote.MassQuote, sessionID quickfi if rgNoQuoteSets.Len() != 1 { return quickfix.NewBusinessMessageRejectError("only 1 quote set supported", 0, nil) } + + quoteId, err := msg.GetQuoteID() + if err != nil { + return err + } + ackRequested := false + if msg.HasQuoteResponseLevel() { + responseLevel,err := msg.GetQuoteResponseLevel(); + if err == nil && responseLevel == enum.QuoteResponseLevel_ACKNOWLEDGE_EACH_QUOTE_MESSAGE { + ackRequested = true; + } + } + noQuoteSets := rgNoQuoteSets.Get(0) rgNoQuoteEntries, err := noQuoteSets.GetNoQuoteEntries() if rgNoQuoteEntries.Len() != 1 { @@ -198,6 +212,10 @@ func (app *myApplication) onMassQuote(msg massquote.MassQuote, sessionID quickfi c := fixClient{sessionID: sessionID} app.e.Quote(c, instrument, ToFixed(bidPrice), ToFixed(bidQty), ToFixed(offerPrice), ToFixed(offerQty)) + if ackRequested { + app.sendQuoteAcceptedAck(quoteId,sessionID); + } + return nil } @@ -253,6 +271,15 @@ func (app *myApplication) sendInstrument(instrument Instrument, reqid string, se quickfix.SendToTarget(msg, sessionID) } +func (app *myApplication) sendQuoteAcceptedAck(quoteID string, sessionID quickfix.SessionID) { + status := field.QuoteStatusField{FIXString: quickfix.FIXString(enum.QuoteStatus_ACCEPTED)} + + msg := massquoteacknowledgement.New(status); + msg.SetQuoteID(quoteID); + quickfix.SendToTarget(msg, sessionID) +} + + func (app *myApplication) sendTradeExecutionReport(so sessionOrder, price Fixed, qty Fixed, remaining Fixed) { order := so.order From a5b0c1513c82a4df173fd516f3c95d4d319057da Mon Sep 17 00:00:00 2001 From: robert engels Date: Fri, 24 Jan 2025 13:12:56 -0600 Subject: [PATCH 51/52] add more symbols --- configs/instruments.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/instruments.txt b/configs/instruments.txt index 2f8dc0b..987e432 100644 --- a/configs/instruments.txt +++ b/configs/instruments.txt @@ -12,4 +12,6 @@ 2 AAPL 3 AMZN 4 GOOG -5 FB \ No newline at end of file +5 FB +6 NFLX +7 ORCL \ No newline at end of file From 52382fe9a4462c78aeed2c6b21f2bf8fc4181ccd Mon Sep 17 00:00:00 2001 From: robert engels Date: Wed, 29 Jan 2025 23:15:48 -0600 Subject: [PATCH 52/52] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6103e29..170775e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A financial exchange written in Go including complete order book, fix protocol, and market data distribution. -Check out [cpp_orderbook](https://github.com/robaho/cpp_orderbook) for a basic C++ version. +Check out [cpp-trader](https://github.com/robaho/cpp-trader) for a C++ version, albeit with less features. ## Features