GithubHelp home page GithubHelp logo

anish-agnihotri / friendmex Goto Github PK

View Code? Open in Web Editor NEW
183.0 4.0 72.0 1.3 MB

BitMEX-inspired trading interface for friend.tech shares.

Home Page: https://friendmex.com

License: GNU Affero General Public License v3.0

TypeScript 95.80% CSS 0.05% JavaScript 4.15%
base bitmex ethereum interface social-tokens trading

friendmex's Introduction

friendmex's People

Contributors

anish-agnihotri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

friendmex's Issues

Indexer error in specfic blocks

When I was running the indexer, it stucked on block 2449440 -> 2449540 with error:

[2023-08-25T08:52:32.580Z (error)] Error when syncing between range Found non-callable @@iterator

And it keeped running around and around these blocks.

Indexer reading blocks

when running indexer and reading blocks I get errors:

[2023-09-12(error)] Error when syncing between range Cannot read properties of undefined (reading 'transactions')

handledata is often missing

Maybe due to limits of the twitter API I can see that handledata is often missing.
Not sure what could be the reason.

Recent trades is not chronological (hours above minutes)

Click on an account.
I see chart on top and below who bought and sold his shares. Very good.
In current version unfortunately it starts on top 1hour ago, scroll down 2hours ago, 3hours ago,..
When you scroll more you can see the minutes.

So sorting does not work.

Cheers

How to get new users info

I use little about ts, can you give me a basic info about how to get new users info,I want to use python to implement this query process.

Failed to access `User` model in Indexer

Hi Anish, I came to a question about the User model in the Indexer. When running pnpm run start, it reports:

/home/jiachen/projects/friendmex/indexer/dist/stats.js:37:46
                                                                                                                                                                                                                   34  */
  35 updateNewestUsers() {
  36     return __awaiter(this, void 0, void 0, function* () {
→ 37         const users = yield this.db.user.findMany(
The table `public.User` does not exist in the current database.
    at zr.handleRequestError (/home/jiachen/projects/friendmex/indexer/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:8308)
    at zr.handleAndLogRequestError (/home/jiachen/projects/friendmex/indexer/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:7697)
    at zr.request (/home/jiachen/projects/friendmex/indexer/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:7307) {
  code: 'P2021',
  clientVersion: '5.0.0',
  meta: { table: 'public.User' }
}
 ELIFECYCLE  Command failed with exit code 1.

Where stats.js:37 is like:

    updateNewestUsers() {
        return __awaiter(this, void 0, void 0, function* () {
            const users = yield this.db.user.findMany({
                orderBy: {
                    createdAt: "desc",
                },
                take: 50,
            });
            yield this.redis.set("latest_users", JSON.stringify(users));
        });
    }

I guess it have to do with the User model. For example, I tried to create a table called User psql reports ERROR: syntax error at or near "User", maybe because it is a reserved keyword. Do you ever met such problem?

Thank you!

Search functionality

This is awesome Anish, Nostalgic, and fun!
Thank you.

Could you create a search function so we can find users?

🙏

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.