mercurial | writing strategies , executing trades via Interactive Brokers | Cryptocurrency library

 by   minhpascal Python Version: Current License: No License

kandi X-RAY | mercurial Summary

kandi X-RAY | mercurial Summary

mercurial is a Python library typically used in Blockchain, Cryptocurrency applications. mercurial has no bugs and it has low support. However mercurial has 12 vulnerabilities and it build file is not available. You can download it from GitHub.

###Summary I wanted to write a simple framework that would allow me to easily write new strategies, backtest them, take their combined output, execute them and finally, analyze them. ###Why is it called Mercurial? Mercurial is an adjective that describes a person 'subject to sudden or unpredictable changes of mood or mind' ... just like the stock market. Furthermore, Mercury is the God of trade/financial gain in ancient Roman mythology.

            kandi-support Support

              mercurial has a low active ecosystem.
              It has 7 star(s) with 1 fork(s). There are 2 watchers for this library.
              It had no major release in the last 6 months.
              mercurial has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of mercurial is current.

            kandi-Quality Quality

              mercurial has no bugs reported.

            kandi-Security Security

              mercurial has 12 vulnerability issues reported (5 critical, 3 high, 4 medium, 0 low).

            kandi-License License

              mercurial does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              mercurial releases are not available. You will need to build from source code and install.
              mercurial has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed mercurial and discovered the below as its top functions. This is intended to give you an instant insight into mercurial implemented functionality, and help decide if they suit your requirements.
            • Calculate Moving Average
            • Returns a DataReader for Yahoo Finance
            • Get strategy output
            • Connect to mysql database
            • Return data reader for Yahoo Finance
            Get all kandi verified functions for this library.

            mercurial Key Features

            No Key Features are available at this moment for mercurial.

            mercurial Examples and Code Snippets

            No Code Snippets are available at this moment for mercurial.

            Community Discussions


            codecov fails in github actions
            Asked 2021-Jun-09 at 22:09
            • my setup for codecov has worked well so far

              • you can regular updates with each pr commits here
              • I haven't change my repo settings
            • as I've inadvertently pushed a folder that I wasn't supposed to,
              then I merged a pr to remove said folder

            • here is my codecov.yml

            • on the aforementioned last pr linked above the github action ci complained with the log below


            Answered 2021-Jun-06 at 17:47

            Codecov has some heisenberg issues. If you don't have a token, please add one otherwise try to:

            • Force-push to retrigger Codecov
            • Rotate your token.



            How to push Mercurial subrepositories to their own origin
            Asked 2021-Jun-09 at 14:17

            I am using subrepositories to share code between multiple projects. I keep the "master" version of these shared repositories in a central location. That way I can easily push changes I made to them in one project and pull them in another. That works, but ideally I want to just push the project repository and all subrepositories should be pushed to their origin. But Mercurial always pushes all subrepositories into the origin of the main repository.

            This is my setup:



            Answered 2021-Jun-09 at 14:17

            I ended up using hooks. First, the libraries inside the projects in the central location need to point to the corresponding central library repository:



            Conda fails to build, when inside docker container
            Asked 2021-May-25 at 22:50

            I am trying to build a docker image. This is the full dockerfile:



            Answered 2021-May-25 at 22:50
            Conda is Too Old

            I replicated this error with the continuumio/miniconda2:4.5.11 Docker image:



            Get second last value in each row of dataframe, R
            Asked 2021-May-14 at 14:45

            I am trying to get the second last value in each row of a data frame, meaning the first job a person has had. (Job1_latest is the most recent job and people had a different number of jobs in the past and I want to get the first one). I managed to get the last value per row with the code below:

            first_job <- function(x) tail(x[!], 1)

            first_job <- apply(data, 1, first_job)



            Answered 2021-May-11 at 13:56

            You can get the value which is next to last non-NA value.



            How to update URL of the existing cloned repository in Mercurial
            Asked 2021-Mar-18 at 11:38

            I am using mercurial for Source Control. I have cloned a repository from address


            Now my repository address is changed to https instead of http.


            How can update this in existing cloned repository so I can pull the latest changes, without cloning the entire repository again?



            Answered 2021-Mar-17 at 13:37

            Just go to settings for the repository. Click on edit file it should show something like below



            git equivalent for mercurials phases feature for preventing a branch to be pushed
            Asked 2021-Mar-12 at 07:46

            I am currently facing the problem that we need to shift to git due some decisions made by other people.

            So with mercurial we have the great phases feature, which allows me to manage local branches which will be ignored when a push(all) is issued. The great advantage is, the phases feature is independent from the server hosted master repositories. I can use it on my own locally without permission from anyone.

            with git, as far as web search told me, you can add some hooks with branch filtering to common server hosted master repositories. My problem is: as a developer I do not have any control other than create/delete/push/pull. I can not install any hooks there and the people managing the servers will never tinker around with them by hand manually. Everything is managed by an ALM software.

            So the solutions for git I found in the Web are not an option for my problem.

            This leads to my question: is there any other mechanism in git, which can replace the functionality of mercurial phases, which enables me on a local repository to prevent some branches from ever being pushed to a server hosted repository?



            Answered 2021-Mar-12 at 07:46

            You've always been able to explicitly configure what refspecs get pushed or fetched when you don't give explicit specs on on the command line, and since v2.29 that includes negative matches.

            To push all matching branches to origin but not branch notthisone,



            Error installing watchman into a Python docker container
            Asked 2021-Mar-12 at 02:32

            How can I install watchman into my python docker container? I've tried installing it from source as described in the watchman documentation but no luck. Here's is my Dockerfile:



            Answered 2021-Mar-12 at 02:32

            Or is there a better way to install watchman into this container?

            YES, you can directly install their pre-compiled binary to container, no need to build from source, see this.

            Next is a whole solution, FYI.




            apt-get install can't find pinned versions within Dockerfile
            Asked 2021-Jan-27 at 10:56

            During the building of a simple Dockerfile, the pinned version of apt-get install is never found and gives me the following output:



            Answered 2021-Jan-27 at 10:56

            The ruby1.9.1 and ruby1.9.1-dev are not available for ubuntu:18.04.
            You can find here the list of supported packages by ubuntu version.

            You can also read this askubuntu question



            adding users to azure devops projects
            Asked 2021-Jan-22 at 07:53

            We have on on premise azure devops server and I'm converting a bunch of Mercurial repositories to it. It's too many to do manually so scripting it with the az devops extensions.

            Creating the repos works great.



            Answered 2021-Jan-22 at 07:53

            You can use az devops security group membership command to add users to the project team. See here.

            az devops security group membership add --group-id "group descriptor" --member-id "user descriptor"

            1, The default project team is actually a group with the name YourProject Team of the Project. You can get its group descriptor using below commands.

            az devops security group list --project YourProject

            2, To get the user descriptor. You can use below command:



            Mercurial HG on Tortoise stuck - waiting for lock on working directory
            Asked 2021-Jan-20 at 15:07

            Over night, my Tortoise stopped being able to push to my work repo, even though both my locks show free.

            I get waiting for lock on working directory of \\uGames/MyGameRepo held by process '24012' on host MyHost.

            After a long time of trying to push, I get abort: working directory of \\uGames/MyGameRepo: timed out waiting for lock held by MyHost:24012.

            There is another question on this, but none of the solutions there has resolved my problem.

            Here is the output of my hg debuglock:



            Answered 2021-Jan-20 at 15:07

            You may need to go to the repo on the server and check the lock files there.

            Since you are using a network file share as your repository, your local HG client will directly read/write files in that location. So it could be the lock files there that are the problem.


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            Jenkins Mercurial Plugin 2.11 and earlier does not configure its XML parser to prevent XML external entity (XXE) attacks.
            A missing permission check in Jenkins Mercurial Plugin 2.11 and earlier allows attackers with Overall/Read permission to obtain a list of names of configured Mercurial installations.
            CVE-2014-9390 CRITICAL
            Git before, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 on Windows and OS X; Mercurial before 3.2.3 on Windows and OS X; Apple Xcode before 6.2 beta 3; mine all versions before 08-12-2014; libgit2 all versions up to 0.21.2; Egit all versions before 08-12-2014; and JGit all versions before 08-12-2014 allow remote Git servers to execute arbitrary commands via a tree containing a crafted .git/config file with (1) an ignorable Unicode codepoint, (2) a git~1/config representation, or (3) mixed case that is improperly handled on a case-insensitive filesystem.
            The mpatch_decode function in mpatch.c in Mercurial before 4.6.1 mishandles certain situations where there should be at least 12 bytes remaining after the current position in the patch data, but actually are not, aka OVE-20180430-0001.
            The mpatch_apply function in mpatch.c in Mercurial before 4.6.1 incorrectly proceeds in cases where the fragment start is past the end of the original data, aka OVE-20180430-0004.
            Mercurial version 4.5 and earlier contains a Incorrect Access Control (CWE-285) vulnerability in Protocol server that can result in Unauthorized data access. This attack appear to be exploitable via network connectivity. This vulnerability appears to have been fixed in 4.5.1.
            Mercurial before 1.6.4 fails to verify the Common Name field of SSL certificates which allows remote attackers who acquire a certificate signed by a Certificate Authority to perform a man-in-the-middle attack.

            Install mercurial

            You can download it from GitHub.
            You can use mercurial like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.


            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone minhpascal/mercurial

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link